diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-07-05 18:00:40 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-07-05 18:00:40 +0000 |
commit | 86e4bafc3b0bb0148b95807d37b36aae14cdf56c (patch) | |
tree | fae9aeadc3fef5cca2aa8c66596edfa5c6a48169 /gdb/solib-svr4.c | |
parent | 3cd07d204baadc4b3d148a7494366fc92e7d42b1 (diff) | |
download | gdb-86e4bafc3b0bb0148b95807d37b36aae14cdf56c.zip gdb-86e4bafc3b0bb0148b95807d37b36aae14cdf56c.tar.gz gdb-86e4bafc3b0bb0148b95807d37b36aae14cdf56c.tar.bz2 |
gdb/
* auxv.c (memory_xfer_auxv): Update attach comment.
* solib-svr4.c (svr4_special_symbol_handling): Remove the call to
svr4_relocate_main_executable.
(svr4_solib_create_inferior_hook): Make the call to
svr4_relocate_main_executable unconditional.
gdb/testsuite/
* gdb.base/attach-pie-misread.exp, gdb.base/attach-pie-misread.c: New.
* gdb.base/break-interp.exp (reach, test_core, test_ld): Require each
displacement message exactly once.
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 4a837ca..79138cc 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -1653,7 +1653,6 @@ enable_break (struct svr4_info *info, int from_tty) static void svr4_special_symbol_handling (void) { - svr4_relocate_main_executable (); } /* Read the ELF program headers from ABFD. Return the contents and @@ -2096,8 +2095,7 @@ svr4_solib_create_inferior_hook (int from_tty) info = get_svr4_info (); /* Relocate the main executable if necessary. */ - if (current_inferior ()->attach_flag == 0) - svr4_relocate_main_executable (); + svr4_relocate_main_executable (); if (!svr4_have_link_map_offsets ()) return; |