gdb 的 multiarch
gdb可以用同一個版本支持x86,ppc等多種體系結構。
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
(gdb) set architecture ?
Undefined item: "?".
(gdb) set architecture
Display all 204 possibilities? (y or n)
alpha m68k:isa-c:nodiv:mac
alpha:ev4 m88k:88100
alpha:ev5 mep
alpha:ev6 mips
am33 mips:10000
am33-2 mips:12000
arm mips:16
armv2 mips:3000
armv2a mips:3900
armv3 mips:4000
armv3m mips:4010
armv4 mips:4100
armv4t mips:4111
armv5 mips:4120
armv5t mips:4300
armv5te mips:4400
auto mips:4600
avr mips:4650
avr:1 mips:5000
avr:2 mips:5400
avr:3 mips:5500
avr:4 mips:6000
avr:5 mips:7000
avr:6 mips:8000
cris mips:9000
cris:common_v10_v32 mips:isa32
crisv32 mips:isa32r2
ep9312 mips:isa64
fr300 mips:isa64r2
fr400 mips:loongson_2e
fr450 mips:loongson_2f
fr500 mips:mips5
fr550 mips:octeon
frv mips:sb1
h1 mn10300
h8300 ms1
h8300h ms1-003
h8300hn ms2
h8300s powerpc:403
h8300sn powerpc:601
h8300sx powerpc:603
h8300sxn powerpc:604
hppa1.0 powerpc:620
i386 powerpc:630
i386:intel powerpc:7400
i386:x86-64 powerpc:750
i386:x86-64:intel powerpc:EC603e
i8086 powerpc:MPC8XX
ia64-elf32 powerpc:a35
ia64-elf64 powerpc:common
iq10 powerpc:common64
iq2000 powerpc:e500
iwmmxt powerpc:rs64ii
iwmmxt2 powerpc:rs64iii
m16c rs6000:6000
m32c rs6000:rs1
m32r rs6000:rs2
m32r2 rs6000:rsc
m32rx s390:31-bit
m68hc11 s390:64-bit
m68hc12 score
m68k sh
m68k:5200 sh-dsp
m68k:5206e sh2
m68k:521x sh2a
m68k:5249 sh2a-nofpu
m68k:528x sh2a-nofpu-or-sh3-nommu
m68k:5307 sh2a-nofpu-or-sh4-nommu-nofpu
m68k:5407 sh2a-or-sh3e
m68k:547x sh2a-or-sh4
m68k:548x sh2e
m68k:68000 sh3
m68k:68008 sh3-dsp
m68k:68010 sh3-nommu
m68k:68020 sh3e
m68k:68030 sh4
m68k:68040 sh4-nofpu
m68k:68060 sh4-nommu-nofpu
m68k:cfv4e sh4a
m68k:cpu32 sh4a-nofpu
m68k:fido sh4al-dsp
m68k:isa-a sh5
m68k:isa-a:emac simple
m68k:isa-a:mac sparc
m68k:isa-a:nodiv sparc:sparclet
m68k:isa-aplus sparc:sparclite
m68k:isa-aplus:emac sparc:sparclite_le
m68k:isa-aplus:mac sparc:v8plus
m68k:isa-b sparc:v8plusa
m68k:isa-b:emac sparc:v8plusb
m68k:isa-b:float sparc:v9
m68k:isa-b:float:emac sparc:v9a
m68k:isa-b:float:mac sparc:v9b
m68k:isa-b:mac spu:256K
m68k:isa-b:nousp tomcat
m68k:isa-b:nousp:emac v850
m68k:isa-b:nousp:mac v850e
m68k:isa-c v850e1
m68k:isa-c:emac vax
m68k:isa-c:mac xscale
m68k:isa-c:nodiv xstormy16
m68k:isa-c:nodiv:emac xtensa