aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorMichael Tiemann <tiemann@cygnus>1995-09-10 17:37:22 +0000
committerMichael Tiemann <tiemann@cygnus>1995-09-10 17:37:22 +0000
commit3a4f97862f047c2b299e3f04ca652142c7032ded (patch)
treefd3c8c65a03ab3061471db50f9dfe417c46a4018 /gdb/remote-sim.c
parent0384d2e3df704ef422af71964c596d5ece533f32 (diff)
downloadgdb-3a4f97862f047c2b299e3f04ca652142c7032ded.zip
gdb-3a4f97862f047c2b299e3f04ca652142c7032ded.tar.gz
gdb-3a4f97862f047c2b299e3f04ca652142c7032ded.tar.bz2
Sun Sep 10 10:24:48 1995 Michael Tiemann <tiemann@axon.cygnus.com>
* tm-ppc-eabi.h (PC_IN_CALL_DUMMY): Redefine this to work with the simulator. FIXME. * rs6000-tdep.c (push_dummy_frame): Calculate the correct link register offset from the current frame (don't assume it is always 8). (push_dummy_frame): Add comment about having only 4096 bytes of stack space in the simulator (by default). * remote-sim.c (gdbsim_create_inferior): Call `add_text_to_loadinfo' so that gdb can find TOC entries when calling functions in the inferior. With this changes, it is now possible to correctly call inferior functions in the PPC simulator.
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);
}