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]

Re: shared library debugging issue - please help


On 6/15/07, Daniel Jacobowitz <drow@false.org> wrote:
On Fri, Jun 15, 2007 at 12:03:41PM +0300, Pobereznicenco Stefan wrote:
>
> 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 ... :(

Just single step a bit from there, or compile without optimization.
GDB does not support inlined functions yet; a call to new has been
inlined into your code.

--
Daniel Jacobowitz
CodeSourcery


Thanks. Tried that, and seems to have the same problem. I recompiled all the code the code with -O0 and -ggdb3. Still nothing. Anyway, tried also to step a few times in my shared library: the debugger points to the same point: file "new" line 93!!! Line dows not change at all. Even more, line 93 contains a comment.

Any other idea?

Thanks,
Stefan.


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