* objfiles.c (objfile_relocate): Add call to breakpoint_re_set
authorFred Fish <fnf@specifix.com>
Tue, 19 Aug 1997 15:46:20 +0000 (15:46 +0000)
committerFred Fish <fnf@specifix.com>
Tue, 19 Aug 1997 15:46:20 +0000 (15:46 +0000)
after relocations are complete.
* remote-vx.c (vx_add_symbols): Remove call to breakpoint_re_set,
this is now done in objfile_relocate.
PR 11308

gdb/objfiles.c
gdb/remote-vx.c

index c4cb02e9a9e6b91c51abe593253d3b1c3552e216..f24bf59c879457bbbdd556ed2bdb0cadf51f0463 100644 (file)
@@ -650,6 +650,9 @@ objfile_relocate (objfile, new_offsets)
       objfile->ei.main_func_lowpc  += ANOFFSET (delta, SECT_OFF_TEXT);
       objfile->ei.main_func_highpc += ANOFFSET (delta, SECT_OFF_TEXT);
     }
+
+  /* Relocate breakpoints as necessary, after things are relocated. */
+  breakpoint_re_set ();
 }
 \f
 /* Many places in gdb want to test just to see if we have any partial
index 00deb6fb5341112007414c145cb190f6db34be74..9fe9894bfe1bc5a9c75ab0ebf52d5098dd669acc 100644 (file)
@@ -715,9 +715,6 @@ vx_add_symbols (name, from_tty, text_addr, data_addr, bss_addr)
   ANOFFSET (offs, SECT_OFF_DATA) = data_addr - ss.data_start;
   ANOFFSET (offs, SECT_OFF_BSS) = bss_addr - ss.bss_start;
   objfile_relocate (objfile, offs);
-
-  /* Need to do this *after* things are relocated.  */
-  breakpoint_re_set ();
 }
 
 /* This function allows the addition of incrementally linked object files.  */
This page took 0.026392 seconds and 4 git commands to generate.