linux-mips
[Top] [All Lists]

Re: gdb/insight 5.3 buggy in kernel module debug

To: renwei <renwei@huawei.com>
Subject: Re: gdb/insight 5.3 buggy in kernel module debug
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 9 Jul 2003 14:36:57 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <003501c34526$f5adfcc0$6efc0b0a@huawei.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <003501c34526$f5adfcc0$6efc0b0a@huawei.com>
Sender: linux-mips-bounce@linux-mips.org
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.

  Ralf

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