From: Pedro Alves Date: Tue, 29 Mar 2016 00:55:38 +0000 (+0100) Subject: Defer breakpoint_re_set until after main program+initial solibs are loaded X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d2b53cc3e99a03733fbf9d3dc176cbb3aba8154;p=thirdparty%2Fbinutils-gdb.git Defer breakpoint_re_set until after main program+initial solibs are loaded Fixes execl tests This defers breakpoint_re_set until we've loaded all the main program and the initial solibs. Good on its own anyway, but fixes an issue with breakpoint_re_set limited to a single objfile later in the series. --- diff --git a/gdb/infcmd.c b/gdb/infcmd.c index fbced2b9032..064f7bcdeaa 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -459,7 +459,7 @@ post_create_inferior (struct target_ops *target, int from_tty) refetch it here. */ if (!gdbarch_has_global_solist (target_gdbarch ())) { - symfile_add_flags add_flags = 0; + symfile_add_flags add_flags = SYMFILE_DEFER_BP_RESET; if (!auto_solib_add) add_flags |= SYMFILE_NO_READ; diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 40287d28b24..3dedbb84ffe 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -2254,7 +2254,7 @@ enable_break (struct svr4_info *info, int from_tty) asection *interp_sect; char *interp_name; CORE_ADDR sym_addr; - symfile_add_flags add_flags = 0; + symfile_add_flags add_flags = SYMFILE_DEFER_BP_RESET; if (from_tty) add_flags |= SYMFILE_VERBOSE; diff --git a/gdb/solib.c b/gdb/solib.c index 8bdf04d607e..32a490df3c3 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -1437,7 +1437,7 @@ reload_shared_libraries (char *ignored, int from_tty, struct cmd_list_element *e) { const struct target_so_ops *ops; - symfile_add_flags add_flags = 0; + symfile_add_flags add_flags = SYMFILE_DEFER_BP_RESET; if (!auto_solib_add) add_flags |= SYMFILE_NO_READ;