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


On Wednesday, August 01 2012, Ulrich Weigand wrote:

> 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 ...)

FWIW I created sourceware.org/bugzilla/show_bug.cgi?id=14428 for this.

Thanks,

-- 
Sergio


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