* shared library debugging issue - please help
@ 2007-06-15 9:04 Pobereznicenco Stefan
2007-06-15 9:37 ` Fwd: " Pobereznicenco Stefan
2007-06-15 12:34 ` Daniel Jacobowitz
0 siblings, 2 replies; 4+ messages in thread
From: Pobereznicenco Stefan @ 2007-06-15 9:04 UTC (permalink / raw)
To: gdb
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Fwd: shared library debugging issue - please help
2007-06-15 9:04 shared library debugging issue - please help Pobereznicenco Stefan
@ 2007-06-15 9:37 ` Pobereznicenco Stefan
2007-06-15 12:34 ` Daniel Jacobowitz
1 sibling, 0 replies; 4+ messages in thread
From: Pobereznicenco Stefan @ 2007-06-15 9:37 UTC (permalink / raw)
To: gdb
---------- 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 !!!!!!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: shared library debugging issue - please help
2007-06-15 9:04 shared library debugging issue - please help Pobereznicenco Stefan
2007-06-15 9:37 ` Fwd: " Pobereznicenco Stefan
@ 2007-06-15 12:34 ` Daniel Jacobowitz
2007-06-15 14:56 ` Pobereznicenco Stefan
1 sibling, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-06-15 12:34 UTC (permalink / raw)
To: Pobereznicenco Stefan; +Cc: gdb
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: shared library debugging issue - please help
2007-06-15 12:34 ` Daniel Jacobowitz
@ 2007-06-15 14:56 ` Pobereznicenco Stefan
0 siblings, 0 replies; 4+ messages in thread
From: Pobereznicenco Stefan @ 2007-06-15 14:56 UTC (permalink / raw)
To: Pobereznicenco Stefan, gdb
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-06-15 14:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-15 9:04 shared library debugging issue - please help Pobereznicenco Stefan
2007-06-15 9:37 ` Fwd: " Pobereznicenco Stefan
2007-06-15 12:34 ` Daniel Jacobowitz
2007-06-15 14:56 ` Pobereznicenco Stefan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox