aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-04-08 23:49:14 +0000
committerJason Molenda <jmolenda@apple.com>1998-04-08 23:49:14 +0000
commit5b944218bef3a1029bbeff6bd301df4e9be5690b (patch)
treec9063387b931a163c5d1ef24de9a03b5a3faa541 /gdb
parent8dc11c35a77cdfe23b00f0fdbf3907c19d4a9b05 (diff)
downloadgdb-5b944218bef3a1029bbeff6bd301df4e9be5690b.zip
gdb-5b944218bef3a1029bbeff6bd301df4e9be5690b.tar.gz
gdb-5b944218bef3a1029bbeff6bd301df4e9be5690b.tar.bz2
Wed Apr 8 16:47:33 1998 Jason Molenda (crash@bugshack.cygnus.com)
* solib.c (solib_create_inferior_hook): Remove Ulrich Drepper's patch of March 23 1998. * breakpoint.c (breakpoint_re_set_one): Remove Ulrich Drepper's patch of March 23 1998.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/solib.c30
2 files changed, 9 insertions, 29 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 252f55d..1a7fa70 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,4 +1,12 @@
+Wed Apr 8 16:47:33 1998 Jason Molenda (crash@bugshack.cygnus.com)
+
+ * solib.c (solib_create_inferior_hook): Remove Ulrich Drepper's
+ patch of March 23 1998.
+ * breakpoint.c (breakpoint_re_set_one): Remove Ulrich Drepper's
+ patch of March 23 1998.
+
Sat Apr 4 10:05:00 1998 Dawn Perchik <dawn@cygnus.com>
+
* mdebugread.c (parse_partial_symbols): If this is an .mdebug
section in an ELF file, override a symbol's ECOFF section with its
ELF section. Also, fix stabs continuation where a stabs string
diff --git a/gdb/solib.c b/gdb/solib.c
index 6cf44d2..2acd2fa 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -1684,11 +1684,9 @@ FIXME
Also, what if child has exit()ed? Must exit loop somehow.
*/
-void
+void
solib_create_inferior_hook()
{
- static int dyn_relocated;
-
/* If we are using the BKPT_AT_SYMBOL code, then we don't need the base
yet. In fact, in the case of a SunOS4 executable being run on
Solaris, we can't get it yet. find_solib will get it when it needs
@@ -1707,32 +1705,6 @@ solib_create_inferior_hook()
return;
}
- if (!dyn_relocated && exec_bfd->start_address != stop_pc)
- {
- /* We have to relocate the debug information. */
- CORE_ADDR displacement = stop_pc - exec_bfd->start_address;
- struct section_offsets *new_offsets;
- int i;
-
- new_offsets = alloca (symfile_objfile->num_sections
- * sizeof (*new_offsets));
-
- for (i = 0; i < symfile_objfile->num_sections; ++i)
- ANOFFSET (new_offsets, i) =
- ANOFFSET (symfile_objfile->section_offsets, i);
-
- ANOFFSET (new_offsets, SECT_OFF_TEXT) += displacement;
- ANOFFSET (new_offsets, SECT_OFF_DATA) += displacement;
- ANOFFSET (new_offsets, SECT_OFF_BSS) += displacement;
- ANOFFSET (new_offsets, SECT_OFF_RODATA) += displacement;
-
- objfile_relocate (symfile_objfile, new_offsets);
- breakpoint_re_set ();
-
- /* Make sure this relocation is done only once. */
- dyn_relocated = 1;
- }
-
#ifndef SVR4_SHARED_LIBS
/* Only SunOS needs the loop below, other systems should be using the
special shared library breakpoints and the shared library breakpoint