diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-02 22:20:47 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-02 22:20:47 +0000 |
commit | 50abf9e57bf73e9b7fc5a1bfa83bcea1557ef029 (patch) | |
tree | 050419cbde1952bfc3006082a2d1c3957219ba4a /gdb/xstormy16-tdep.c | |
parent | 440cc0bc1a3338bfbd5e098cb65483bc50c0bd57 (diff) | |
download | gdb-50abf9e57bf73e9b7fc5a1bfa83bcea1557ef029.zip gdb-50abf9e57bf73e9b7fc5a1bfa83bcea1557ef029.tar.gz gdb-50abf9e57bf73e9b7fc5a1bfa83bcea1557ef029.tar.bz2 |
2003-01-02 Andrew Cagney <ac131313@redhat.com>
* arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
frame accessor methods.
* alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
* dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
* m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
* mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
* s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
* vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
* z8k-tdep.c: Ditto.
Diffstat (limited to 'gdb/xstormy16-tdep.c')
-rw-r--r-- | gdb/xstormy16-tdep.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c index fb7ff3c..580c0fe 100644 --- a/gdb/xstormy16-tdep.c +++ b/gdb/xstormy16-tdep.c @@ -333,7 +333,7 @@ xstormy16_pop_frame (void) if (fi == NULL) return; /* paranoia */ - if (DEPRECATED_PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame)) + if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), fi->frame, fi->frame)) { generic_pop_dummy_frame (); } @@ -466,7 +466,7 @@ xstormy16_scan_prologue (CORE_ADDR start_addr, CORE_ADDR end_addr, if (fi) { /* In a call dummy, don't touch the frame. */ - if (DEPRECATED_PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame)) + if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), fi->frame, fi->frame)) return start_addr; /* Grab the frame-relative values of SP and FP, needed below. @@ -738,8 +738,8 @@ xstormy16_frame_init_saved_regs (struct frame_info *fi) /* Find the beginning of this function, so we can analyze its prologue. */ - if (find_pc_partial_function (fi->pc, NULL, &func_addr, &func_end)) - xstormy16_scan_prologue (func_addr, fi->pc, fi, NULL); + if (find_pc_partial_function (get_frame_pc (fi), NULL, &func_addr, &func_end)) + xstormy16_scan_prologue (func_addr, get_frame_pc (fi), fi, NULL); /* Else we're out of luck (can't debug completely stripped code). FIXME. */ } @@ -756,9 +756,9 @@ xstormy16_frame_saved_pc (struct frame_info *fi) { CORE_ADDR saved_pc; - if (DEPRECATED_PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame)) + if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), fi->frame, fi->frame)) { - saved_pc = deprecated_read_register_dummy (fi->pc, fi->frame, + saved_pc = deprecated_read_register_dummy (get_frame_pc (fi), fi->frame, E_PC_REGNUM); } else @@ -791,9 +791,9 @@ xstormy16_init_extra_frame_info (int fromleaf, struct frame_info *fi) or we may be in the prologue, before the FP has been set up. Unfortunately, we can't make this determination without first calling scan_prologue, and we can't do that unles we know the - fi->pc. */ + get_frame_pc (fi). */ - if (!fi->pc) + if (!get_frame_pc (fi)) { /* Sometimes we are called from get_prev_frame without the PC being set up first. Long history, don't ask. @@ -801,7 +801,7 @@ xstormy16_init_extra_frame_info (int fromleaf, struct frame_info *fi) frame, so we should be able to get the saved pc from the next frame. */ if (fi->next) - fi->pc = xstormy16_frame_saved_pc (fi->next); + deprecated_update_frame_pc_hack (fi, xstormy16_frame_saved_pc (fi->next)); } /* Take care of the saved_regs right here (non-lazy). */ @@ -817,7 +817,7 @@ xstormy16_init_extra_frame_info (int fromleaf, struct frame_info *fi) static CORE_ADDR xstormy16_frame_chain (struct frame_info *fi) { - if (DEPRECATED_PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame)) + if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), fi->frame, fi->frame)) { /* Call dummy's frame is the same as caller's. */ return fi->frame; |