From 23916b7dc0f2f05982da7a76726d931cf738d2cc Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Wed, 30 Sep 2015 14:23:12 -0700 Subject: Initial publication of breakpoint reset project. This is a work-in-progress publication of an intelligent breakpoint_re_set redesign. See the project wiki page for more information: https://sourceware.org/gdb/wiki/BreakpointReset --- gdb/objfiles.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'gdb/objfiles.c') diff --git a/gdb/objfiles.c b/gdb/objfiles.c index d33379f..0ea60f6 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -971,7 +971,13 @@ objfile_relocate (struct objfile *objfile, /* Relocate breakpoints as necessary, after things are relocated. */ if (changed) - breakpoint_re_set (); + { + struct breakpoint_reset_reason r; + + init_breakpoint_reset_reason (&r); + r.where = __func__; + breakpoint_re_set (&r); + } } /* Rebase (add to the offsets) OBJFILE by SLIDE. SEPARATE_DEBUG_OBJFILE is @@ -1010,7 +1016,13 @@ objfile_rebase (struct objfile *objfile, CORE_ADDR slide) /* Relocate breakpoints as necessary, after things are relocated. */ if (changed) - breakpoint_re_set (); + { + struct breakpoint_reset_reason r; + + init_breakpoint_reset_reason (&r); + r.where = __func__; + breakpoint_re_set (&r); + } } /* Return non-zero if OBJFILE has partial symbols. */ -- cgit v1.1