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

Re: GDB problems




Guido Guenther wrote:
> 
> On Sun, Mar 16, 2003 at 10:50:37AM -0800, Chris Plummer wrote:
> > I'm having problems using GDB on an application of mine. I get a SIGTRAP
> > before main() is even entered, and the pc is bad. The output of a gdb
> > session is below. Also, if I attach to the already running app, I have
> > similar problems with SIGTRAP. The only thing that seems to work is
> > debugging a core, and even that doesn't always work (sometimes it thinks
> > the pc is 0)
> Does this also happen when you build with -O0?
>  -- Guido
> 
Yes. So far I've tried "-g", "-g -04", "-04", and "-O0".

Chris



Reply to: