This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: info registers output
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: palves at redhat dot com (Pedro Alves)
- Cc: sergiodj at redhat dot com (Sergio Durigan Junior), gdb-patches at sourceware dot org (GDB Patches), tromey at redhat dot com (Tom Tromey), jan dot kratochvil at redhat dot com (Jan Kratochvil)
- Date: Wed, 1 Aug 2012 22:49:09 +0200 (CEST)
- Subject: 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