diff options
author | Pedro Alves <palves@redhat.com> | 2016-03-29 01:55:38 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-09-19 15:44:42 +0100 |
commit | 0d2b53cc3e99a03733fbf9d3dc176cbb3aba8154 (patch) | |
tree | b9995fb66943154c72ee7350b7be2ae899a35646 | |
parent | 5fc9325f09979dbab0961eb4ad13748f5dbece81 (diff) | |
download | gdb-0d2b53cc3e99a03733fbf9d3dc176cbb3aba8154.zip gdb-0d2b53cc3e99a03733fbf9d3dc176cbb3aba8154.tar.gz gdb-0d2b53cc3e99a03733fbf9d3dc176cbb3aba8154.tar.bz2 |
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.
-rw-r--r-- | gdb/infcmd.c | 2 | ||||
-rw-r--r-- | gdb/solib-svr4.c | 2 | ||||
-rw-r--r-- | gdb/solib.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index fbced2b..064f7bc 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 40287d2..3dedbb8 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 8bdf04d..32a490d 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; |