diff options
author | Steve Chamberlain <sac@cygnus> | 1993-07-02 21:25:04 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1993-07-02 21:25:04 +0000 |
commit | 85e07872b61df1351ceb99e5f32d2fbe022c9eb4 (patch) | |
tree | 06db410ae871daad78056ae5186f368877b1f002 /gdb/corelow.c | |
parent | d8a80e6ddc7297d1fba25a25c35657822b161879 (diff) | |
download | fsf-binutils-gdb-85e07872b61df1351ceb99e5f32d2fbe022c9eb4.zip fsf-binutils-gdb-85e07872b61df1351ceb99e5f32d2fbe022c9eb4.tar.gz fsf-binutils-gdb-85e07872b61df1351ceb99e5f32d2fbe022c9eb4.tar.bz2 |
New target macros for getting at the pc, sp and fp.
* infcmd.c (read_pc, write_pc): Modify to use new macros.
(read_sp, write_sp, read_fp, write_fp): New functions.
* blockframe.c (reinit_frame_cache, get_prev_frame_info): Use new functions.
* breakpoint.c (bpstat_alloc): ditto.
* infrun.c (wait_for_inferior): ditto.
* stack.c (print_frame_info): ditto.
* valops (call_function_by_hand): ditto.
* corelow.c (core_open): ditto.
* h8500-tdep.c: (target_read_sp, target_write_sp, target_read_pc,
target_write_pc, target_read_fp, target_write_fp): New functions.
* inferior.h (read_sp, write_sp, read_fp, write_fp): Prototypes.
Diffstat (limited to 'gdb/corelow.c')
-rw-r--r-- | gdb/corelow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c index de9af10..ce39b58 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -165,7 +165,7 @@ core_open (filename, from_tty) #endif /* Now, set up the frame cache, and print the top of stack */ - set_current_frame (create_new_frame (read_register (FP_REGNUM), + set_current_frame (create_new_frame (read_fp (), read_pc ())); select_frame (get_current_frame (), 0); print_stack_frame (selected_frame, selected_frame_level, 1); |