[Top] [All Lists]

Re: gdb/insight 5.3 buggy in kernel module debug

To: renwei <>
Subject: Re: gdb/insight 5.3 buggy in kernel module debug
From: Ralf Baechle <>
Date: Wed, 9 Jul 2003 14:36:57 +0200
In-reply-to: <003501c34526$f5adfcc0$>
Original-recipient: rfc822;
References: <003501c34526$f5adfcc0$>
User-agent: Mutt/1.4.1i
On Tue, Jul 08, 2003 at 04:00:08PM +0800, renwei wrote:

> new thead xxxxxx
>    0xffffffff83f28040 in ??()
> something like that.
> and the backtrace command can't work, also.
> but my gdb5.0 for mipsel is ok.
> I think that's the gdb get the pc as 64bit, but my 
> board's cpu is 32bit, so it can't get the correct pc ...
> The kernel addr is up to 0x80000000, so it's negative.

On 64-bit processors running 32-bit code the actual values in the
registers are sign-extended to 64-bit, so that behaviour of your gdb
seems right.  Fix whatever places do return a zero-extended values.


<Prev in Thread] Current Thread [Next in Thread>