linux-mips
[Top] [All Lists]

[patch]: gdb/insight 5.3 buggy in kernel module debug

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [patch]: gdb/insight 5.3 buggy in kernel module debug
From: renwei <renwei@huawei.com>
Date: Fri, 11 Jul 2003 10:14:44 +0800
Cc: linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <003501c34526$f5adfcc0$6efc0b0a@huawei.com> <20030709123657.GA30305@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
Here's my patch to this problem, change the read pc on mips32 cpu.

Maybe someone want it.
change mips-tdep.c
///////////////////////////////////////////////////////////////////////////////////////
766c766,772
<   return read_signed_register_pid (PC_REGNUM, ptid);
---
>   /*add by renwei , if mips 32, the pc should be some positive number,
>    or the gdb can't lookup the backtrace in kernel*/
>   LONGEST lpc = read_signed_register_pid (PC_REGNUM, ptid);
>   if(REGISTER_RAW_SIZE(PC_REGNUM) < (int)sizeof(LONGEST))
>     lpc &= 0x00000000ffffffffLL;
>   
>   return lpc;
1703c1709,1714
< 
---
>   
>   /*add by renwei , if mips 32, the pc should be some positive number,
>    or the gdb can't lookup the backtrace in kernel*/
>   if(REGISTER_RAW_SIZE(PC_REGNUM) < (int)sizeof(LONGEST))
>     saved_pc &= 0x00000000ffffffffLL;
>   
/////////////////////////////////////////////////////////////////////////////////////////////




Another problem:   insight 5.3 compile error on cygwin.
fix  tclWin32Dll.c
/////////////////////////////////////////////////////////////////////////////////
121c121,122
< static Tcl_Encoding tclWinTCharEncoding;
---
> /*change this to global*/
> Tcl_Encoding tclWinTCharEncoding;
///////////////////////////////////////////////////////////////////////////////////


                                                          renc 

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