This is the mail archive of the gdb@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: question about GDB message


On Tue, Sep 25, 2007 at 08:57:47AM -0700, The Westlakers wrote:
> > That's right.  It shouldn't matter that the GDB is 32-bit.  What goes
> > wrong talking to a 64-bit target?
> 
> when GDB issues 'g' packet to the target, the target returns all reg
> values in 64-bit,
> but the GDB interprets it as 32-bit, so 'info reg' will not show
> correct register values.
> if the target returns in 32-bit values, then info reg can display all
> values correctly.

Did you load a 64-bit file into GDB so that it knows you are debugging
a 64-bit image?

-- 
Daniel Jacobowitz
CodeSourcery


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