This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/11094] cannot reexecute programs using the GDB JIT interface in shared libs
- From: "ppluzhnikov at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 22 Dec 2009 23:39:28 -0000
- Subject: [Bug breakpoints/11094] cannot reexecute programs using the GDB JIT interface in shared libs
- References: <20091215210108.11094.edwintorok@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From ppluzhnikov at google dot com 2009-12-22 23:39 -------
I am guessing that bp_jit_event breakpoints must be disabled here
(in addition to bp_breakpoint and bp_hardware_breakpoint):
// gdb/breakpoint.c
static void
disable_breakpoints_in_unloaded_shlib (struct so_list *solib)
{
...
ALL_BP_LOCATIONS (loc, locp_tmp)
{
struct breakpoint *b = loc->owner;
if ((loc->loc_type == bp_loc_hardware_breakpoint
...
&& (b->type == bp_breakpoint || b->type == bp_hardware_breakpoint)
&& solib_contains_address_p (solib, loc->address))
{
loc->shlib_disabled = 1;
[There are likely several more places where bp_jit_event should be treated same
as bp_breakpoint.]
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11094
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.