mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user