This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH} Minor bug fix in arch-utils.c
- To: Fernando Nasser <fnasser at redhat dot com>
- Subject: Re: [PATCH} Minor bug fix in arch-utils.c
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 10 May 2001 13:26:55 -0400
- Cc: John S Kallal <jskallal at home dot com>,Adam Mirowski <mir at solfege dot France dot Sun dot COM>,gdb-patches at sources dot redhat dot com
- References: <000701c0cea9$7b18ed80$6401a8c0@cn986452a> <3AF9A729.6090207@cygnus.com> <3AFAC0A5.222B3B4C@redhat.com>
> Yes, I've seen this patch twice now. While an obvious fix, I'm going to
>> check in the attached. The ``info architecture'' command can simply be
>> deleted.
>>
>> Andrew
>
>
> Ouch! Isn't it any useful? At least as a "maintenance" command?
A while back I fixed set/show architecture vis:
(gdb) show arch
archdebug architecture
(gdb) show architecture
The target architecture is set automatically (currently rs6000:6000)
(gdb) set architecture
Requires an argument. Valid arguments are rs6000:6000, rs6000:rs1, rs6000:rsc, rs6000:rs2, powerpc:common, powerpc:603, powerpc:EC603e, powerpc:604, powerpc:403, powerpc:601, powerpc:620, powerpc:630, powerpc:a35, powerpc:rs64ii, powerpc:rs64iii, powerpc:7400, powerpc:MPC8XX, auto.
(gdb) set architecture<TAB>
auto powerpc:620 powerpc:a35 rs6000:rs1
powerpc:403 powerpc:630 powerpc:common rs6000:rs2
powerpc:601 powerpc:7400 powerpc:rs64ii rs6000:rsc
powerpc:603 powerpc:EC603e powerpc:rs64iii
powerpc:604 powerpc:MPC8XX rs6000:6000
compare this to info architecture:
(gdb) info architecture
Warning: command 'info architecture' is deprecated.
Use 'set architecture'
Available architectures are:
rs6000:6000 rs6000:rs1 rs6000:rsc rs6000:rs2 powerpc:common powerpc:603 powerpc:EC603e powerpc:604 powerpc:403 powerpc:601 powerpc:620 powerpc:630 powerpc:a35 powerpc:rs64ii powerpc:rs64iii powerpc:7400 powerpc:MPC8XX
so it is redundant.
Andrew