This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: shared library debugging issue - please help


---------- Forwarded message ----------
From: Pobereznicenco Stefan <pobere@gmail.com>
Date: Jun 15, 2007 12:03 PM
Subject: shared library debugging issue - please help
To: gdb@sourceware.org


Hey,


I'm trying to debug a shared library.
I set a breakpoint like this:

(gdb) break LoginSM.cpp:153
Breakpoint 7 at 0x2cf652f: file LoginSM.cpp, line 153.

(I see that the breakpoint was set correctly!!!!!)

This file (LoginSM.cpp) is part of the shared library.

But, when the breakpoint is hit, gdb displays this:

Breakpoint 1, 0xAADDRESS in LoginSM::Next () at
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/new:93

LoginSM::Next() is the function inside it I set the breakpoint, ...
but why gdb tells me about 'new' file? I didn't set a breakpoint in
the header file of operator 'new' ...

Because of this, I cannot step into my shared library ... :(

Well, if I set a breakpoint in another file, the result is the same:
the debugger stops at line 93 from 'new' file ....

Could anyone help me?

Thanks,
Stefan




well, I want to add something. If I set a breakpoint to a function, like this: (gdb) break libmain.cpp:functionNameFromSharedLibrary Breakpoint 7 at 0x4772c8: file /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/new, line 93.

the breakpoint is set in "new" file !!!!!!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]