This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH} Minor bug fix in arch-utils.c


> 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]