linux-mips-fnet
[Top] [All Lists]

Re: remote GDB debugging and the __init macro of init.h

To: Jun Sun <jsun@mvista.com>
Subject: Re: remote GDB debugging and the __init macro of init.h
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Tue, 31 Oct 2000 05:12:04 +0100
Cc: "Kevin D. Kissell" <kevink@mips.com>, Steve Kranz <skranz@ridgerun.com>, linux-mips@oss.sgi.com, linux-mips@fnet.fr
In-reply-to: <39FDB5B7.61BE2B91@mvista.com>; from jsun@mvista.com on Mon, Oct 30, 2000 at 09:53:59AM -0800
References: <39F99E20.8EE47072@ridgerun.com> <014a01c0402d$b432ada0$0deca8c0@Ulysses> <39FDB5B7.61BE2B91@mvista.com>
On Mon, Oct 30, 2000 at 09:53:59AM -0800, Jun Sun wrote:

> > What you've done should solve the problem, but note
> > that it has the side effect of preventing the text and data
> > sections in question from getting freed up at the end
> > of initialization.  I probably should have done so myself
> > last year when I was struggling with debugging some init
> > code using kgdb, but instead I simply got used to finding
> > the address in the symbol table and setting the breakpoints
> > by hex address instead of by symbol.
> 
> A dumb question - how do you set breakpoint at specified address?  I was
> trying to do that with "b 0xabcdabcd" or "b @0xabcdabcd", none of them
> worked.

b *0xabcdabcd

Try ``help break'' :-)

  Ralf

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