This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/12126] gdb does not display source-level debugging formember function of a templated iterator.
- From: "aegges at web dot de" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 13 Sep 2011 12:05:04 +0000
- Subject: [Bug c++/12126] gdb does not display source-level debugging formember function of a templated iterator.
- Auto-submitted: auto-generated
- References: <bug-12126-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12126
Axel MÃller <aegges at web dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aegges at web dot de
--- Comment #3 from Axel MÃller <aegges at web dot de> 2011-09-13 12:05:04 UTC ---
I have a similar problem with inlined methods. gdb and addr2line are not able
to resolve the source file and line of the corresponding address. I am using
gdb 7.2 but gdb 7.3 fails, too. Interestingly, Valgrind can resolve it and nm
shows clearly that the debug info is actually in the executable. Unfortunately,
I was not able to construct a simple testcase to show the problem here.
After some changes on a different source file and recompilation the problem
went away. The only difference I saw in the disassembler code was that the
following line was added in the case where gdb has a problem:
call <i686.get_pc_thunk.bx>
Usually, this call is inserted in case of position independent code (option
-fPIC for gcc). I don't know why it was inserted in my executable as I don't
use this option. Perhaps this information can help to identify the cause of
this bug and solve it.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.