[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fw: Fw: help kernel debugging with gdb remotely



----- Original Message ----- 
From: "mike varga" <mike.varga@cavium.com>
To: "Greg Lehey" <grog@lemis.com>
Sent: Tuesday, July 31, 2001 6:00 PM
Subject: Re: Fw: help kernel debugging with gdb remotely


> I believe it is more than just that.
> I do have the target's image in sync 
> with the remote machines source and 
> symbol file (bsd.gdb).
> 
>  I have double checked.
> 
> I have added hardcoded breakpoints in my
> driver, but the breaks keep occuring
> in another source module. Regardless
> of where I put the break point it
> drops me to the exact same location. 
>  
> ----- Original Message ----- 
> From: "Greg Lehey" <grog@lemis.com>
> To: "mike varga" <mike.varga@caveonetworks.com>
> Cc: <tech@openbsd.org>
> Sent: Tuesday, July 31, 2001 5:40 PM
> Subject: Re: Fw: help kernel debugging with gdb remotely
> 
> 
> > On Tuesday, 31 July 2001 at  9:02:31 -0700, mike varga wrote:
> > > ----- Original Message -----
> > > From: mike varga
> > > To: misc@openbsd.org
> > > Sent: Monday, July 30, 2001 11:39 AM
> > > Subject: help kernel debugging with gdb remotely
> > >
> > >
> > > I am writing a driver and trying to debug it.
> > >
> > > I get everything working fine with gdb,
> > > serial connection, etc...except the source is
> > > completely out sync with the image.
> > >
> > > I have added hardcoded breakpoints to my driver
> > > of the form "asm int 3". The break points occur
> > > at the same location in code other than mine;
> > > completely unrelated code.
> > >
> > > Does anyone know how to fix this?
> > 
> > Sure, get the source back into sync with the objects.  What do you
> > expect people to tell you?
> > 
> > Greg
> > --
> > Finger grog@lemis.com for PGP public key
> > See complete headers for address and phone numbers