* gdb/kgdb register mismatch
@ 2006-02-23 19:40 Pete Popov
2006-02-23 21:31 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Pete Popov @ 2006-02-23 19:40 UTC (permalink / raw)
To: 'linux-mips@linux-mips.org'
I'm having the following problems with gdb/kgdb:
64bit CPU, running a 32 bit kernel. When I break at a certain point, I
can see that the kernel kgdb stub appears to be sending the correct
register information, where each reg value written in the kgdb packet is
32bit. However, the cross gdb client seems to be interpreting, or
expecting, 64bit register values so it 'skips' over every other value.
For example:
reg values sent by kgdb: reg values shown by gdb client:
reg 0: 0x00000000 reg0: 0x00000001
reg 1: 0x00000001 reg1: 0x00000002
reg 2: 0x00000002 reg2: 0x00000004
reg 3: 0x00000003
reg 4: 0x00000004
Should the kgdb stub be sending 64bit values for the registers, even
though it's a 32bit kernel? If the stub is supposed to be sending 32bit
register values, any suggestion why cross gdb is not interpreting them
correctly?
Thanks,
Pete
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gdb/kgdb register mismatch
2006-02-23 19:40 gdb/kgdb register mismatch Pete Popov
@ 2006-02-23 21:31 ` Daniel Jacobowitz
2006-02-23 21:58 ` Pete Popov
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2006-02-23 21:31 UTC (permalink / raw)
To: Pete Popov; +Cc: 'linux-mips@linux-mips.org'
On Thu, Feb 23, 2006 at 11:40:06AM -0800, Pete Popov wrote:
>
> I'm having the following problems with gdb/kgdb:
>
> 64bit CPU, running a 32 bit kernel. When I break at a certain point, I
> can see that the kernel kgdb stub appears to be sending the correct
> register information, where each reg value written in the kgdb packet is
> 32bit. However, the cross gdb client seems to be interpreting, or
> expecting, 64bit register values so it 'skips' over every other value.
> For example:
>
> reg values sent by kgdb: reg values shown by gdb client:
> reg 0: 0x00000000 reg0: 0x00000001
> reg 1: 0x00000001 reg1: 0x00000002
> reg 2: 0x00000002 reg2: 0x00000004
> reg 3: 0x00000003
> reg 4: 0x00000004
>
> Should the kgdb stub be sending 64bit values for the registers, even
> though it's a 32bit kernel? If the stub is supposed to be sending 32bit
> register values, any suggestion why cross gdb is not interpreting them
> correctly?
This is a FAQ; it's a bug in GDB that will be fixed someday, but for
now use "set architecture mips:isa32".
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gdb/kgdb register mismatch
2006-02-23 21:31 ` Daniel Jacobowitz
@ 2006-02-23 21:58 ` Pete Popov
0 siblings, 0 replies; 3+ messages in thread
From: Pete Popov @ 2006-02-23 21:58 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: 'linux-mips@linux-mips.org'
On Thu, 2006-02-23 at 16:31 -0500, Daniel Jacobowitz wrote:
> On Thu, Feb 23, 2006 at 11:40:06AM -0800, Pete Popov wrote:
> >
> > I'm having the following problems with gdb/kgdb:
> >
> > 64bit CPU, running a 32 bit kernel. When I break at a certain point, I
> > can see that the kernel kgdb stub appears to be sending the correct
> > register information, where each reg value written in the kgdb packet is
> > 32bit. However, the cross gdb client seems to be interpreting, or
> > expecting, 64bit register values so it 'skips' over every other value.
> > For example:
> >
> > reg values sent by kgdb: reg values shown by gdb client:
> > reg 0: 0x00000000 reg0: 0x00000001
> > reg 1: 0x00000001 reg1: 0x00000002
> > reg 2: 0x00000002 reg2: 0x00000004
> > reg 3: 0x00000003
> > reg 4: 0x00000004
> >
> > Should the kgdb stub be sending 64bit values for the registers, even
> > though it's a 32bit kernel? If the stub is supposed to be sending 32bit
> > register values, any suggestion why cross gdb is not interpreting them
> > correctly?
>
> This is a FAQ; it's a bug in GDB that will be fixed someday, but for
> now use "set architecture mips:isa32".
It works, thanks! I'm not sure how well documented this is but perhaps
it's just because I don't use kgdb often.
Pete
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-23 21:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-23 19:40 gdb/kgdb register mismatch Pete Popov
2006-02-23 21:31 ` Daniel Jacobowitz
2006-02-23 21:58 ` Pete Popov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox