aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 813f212..f2df37a 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -200,6 +200,12 @@ gdbsim_create_inferior (exec_file, args, env)
inferior_pid = 42;
insert_breakpoints (); /* Needed to get correct instruction in cache */
+
+ /* FIXME: This needs to be done in a target-specific fashion.
+ What you see here works for the PPC simulator tiemann 9/9/1995.
+ Also, the fact that we can find the addresses for breakpoints without
+ this mechanism suggests some redundant code that could be merged. */
+ add_text_to_loadinfo (entry_pt, entry_pt+exec_bfd->sections->_cooked_size);
proceed (entry_pt, TARGET_SIGNAL_DEFAULT, 0);
}