From 5f1c39efa244145447808660b9bd8119cfc956c6 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Sat, 19 Sep 1992 12:08:23 +0000 Subject: [PATCH] * rs6000-tdep.c (push_dummy_frame, pop_dummy_frame): replace calls to {fetch|store}_inferior_registers with calls to target_{fetch|store}_registers, for remote-target independence. --- gdb/ChangeLog | 4 ++++ gdb/rs6000-tdep.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 55924502968..325670f60bb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -8,6 +8,10 @@ Wed Sep 16 22:31:55 1992 K. Richard Pixley (rich@sendai.cygnus.com) * remote-udi.c (udi_attach): change printf to error to prevent fallthrough bug. + * rs6000-tdep.c (push_dummy_frame, pop_dummy_frame): replace + calls to {fetch|store}_inferior_registers with calls to + target_{fetch|store}_registers, for remote-target independence. + Sat Sep 19 04:23:54 1992 John Gilmore (gnu@cygnus.com) * Makefile.in: Fix bug I introduced in merging Rich's change. diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index edae708f226..327dc75cfe8 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -320,7 +320,7 @@ push_dummy_frame () int sp, pc; /* stack pointer and link register */ int ii; - fetch_inferior_registers (-1); + target_fetch_registers (-1); if (dummy_frame_count >= dummy_frame_size) { dummy_frame_size += DUMMY_FRAME_ADDR_SIZE; @@ -432,7 +432,7 @@ pop_dummy_frame () /* Now we can restore all registers. */ - store_inferior_registers (-1); + target_store_registers (-1); pc = read_pc (); flush_cached_frames (); set_current_frame (create_new_frame (sp, pc)); @@ -489,7 +489,7 @@ pop_frame () } write_register (SP_REGNUM, prev_sp); - store_inferior_registers (-1); + target_store_registers (-1); flush_cached_frames (); set_current_frame (create_new_frame (prev_sp, lr)); } @@ -813,7 +813,7 @@ ran_out_of_registers_for_arguments: write_memory (sp, &saved_sp, 4); /* set back chain properly */ - store_inferior_registers (-1); + target_store_registers (-1); return sp; } -- 2.30.2