From 3a4f97862f047c2b299e3f04ca652142c7032ded Mon Sep 17 00:00:00 2001 From: Michael Tiemann Date: Sun, 10 Sep 1995 17:37:22 +0000 Subject: Sun Sep 10 10:24:48 1995 Michael Tiemann * 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. --- gdb/remote-sim.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/remote-sim.c') 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); } -- cgit v1.1