This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/14844] Tracepoints are not reinserted in reloadedlibraries.
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 15 Nov 2012 14:47:17 +0000
- Subject: [Bug breakpoints/14844] Tracepoints are not reinserted in reloadedlibraries.
- Auto-submitted: auto-generated
- References: <bug-14844-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14844
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |palves at redhat dot com
--- Comment #2 from Pedro Alves <palves at redhat dot com> 2012-11-15 14:47:17 UTC ---
Tracepoints and dynamic loading/unloading of shared libraries just don't mix up
well today. Consider e.g., your program dlopens a library, and you set a
tracepoint somewhere in the DSO. Then you tstart, and let the program
continue. The tracepoint it hit, and before you tstop, the program dlcloses
the library. You now tstop, and tfind to inspect the tracepoint hit, but that
will be broken, because the library is no longer loaded.
Your example is just another instance of this issue. There's no guarantee the
second time libfoo.so is loaded it is even loaded at the same address.
--
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.