This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, RFC] Add support for choosing disassembler cpu in GDB for POWER.


Peter Bergner wrote:

> >> +  gdb_disassembler_cpu = strdup (PPC_DEFAULT_CPU",any");
> > 
> > Why do we have to know about this here in GDB?  Can't the GDB default just
> > be the empty (or NULL) string, and then opcodes does the defaulting
> > (as it does today)?
> 
> I thought it would be useful if the user does a "show powerpc disassembler"
> without ever doing a "set powerpc disassembler <cpu>" to show them what
> default cpu they're actually using.  If you want this hunk removed, I
> can spit out 'default' in the case gdb_disassembler_cpu is NULL.

Yes, I think this would be better.

Thanks,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU/Linux compilers and toolchain
  Ulrich.Weigand@de.ibm.com


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