This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

Re: info registers output


Pedro Alves wrote:
> Ah.  I wonder if that's been made on purpose.  You get this on amd64:
> 
> (gdb) info registers rip pc
> rip            0x390f407e68     0x390f407e68 <start_thread+552>
> pc: 0x390f407e68
> 
> GDB knows the type of "pc", and so should be able to print "pc" like "rip".
> 
> Would that be a good idea?

Would make sense to me.  (In fact, there probably ought to be a single
routine to print a register, called by both code paths, to avoid having
the code diverge again in the future ...)

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  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]