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/s390-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/s390-tdep.c')
-rw-r--r-- | gdb/s390-tdep.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c index 964c23a..572b30b 100644 --- a/gdb/s390-tdep.c +++ b/gdb/s390-tdep.c @@ -773,8 +773,8 @@ s390_function_start (struct frame_info *fi) if (fi->extra_info && fi->extra_info->initialised) function_start = fi->extra_info->function_start; - else if (fi->pc) - function_start = get_pc_function_start (fi->pc); + else if (get_frame_pc (fi)) + function_start = get_pc_function_start (get_frame_pc (fi)); return function_start; } @@ -794,7 +794,7 @@ s390_frameless_function_invocation (struct frame_info *fi) else { fextra_info_ptr = &fextra_info; - s390_get_frame_info (s390_sniff_pc_function_start (fi->pc, fi), + s390_get_frame_info (s390_sniff_pc_function_start (get_frame_pc (fi), fi), fextra_info_ptr, fi, 1); } frameless = ((fextra_info_ptr->stack_bought == 0)); @@ -905,8 +905,8 @@ void s390_init_extra_frame_info (int fromleaf, struct frame_info *fi) { fi->extra_info = frame_obstack_alloc (sizeof (struct frame_extra_info)); - if (fi->pc) - s390_get_frame_info (s390_sniff_pc_function_start (fi->pc, fi), + if (get_frame_pc (fi)) + s390_get_frame_info (s390_sniff_pc_function_start (get_frame_pc (fi), fi), fi->extra_info, fi, 1); else s390_memset_extra_info (fi->extra_info); @@ -926,12 +926,12 @@ s390_frame_init_saved_regs (struct frame_info *fi) { /* zalloc memsets the saved regs */ frame_saved_regs_zalloc (fi); - if (fi->pc) + if (get_frame_pc (fi)) { quick = (fi->extra_info && fi->extra_info->initialised && fi->extra_info->good_prologue); s390_get_frame_info (quick ? fi->extra_info->function_start : - s390_sniff_pc_function_start (fi->pc, fi), + s390_sniff_pc_function_start (get_frame_pc (fi), fi), fi->extra_info, fi, !quick); } } @@ -954,8 +954,8 @@ s390_frame_saved_pc_nofix (struct frame_info *fi) if (fi->extra_info && fi->extra_info->saved_pc_valid) return fi->extra_info->saved_pc; - if (deprecated_generic_find_dummy_frame (fi->pc, fi->frame)) - return deprecated_read_register_dummy (fi->pc, fi->frame, S390_PC_REGNUM); + if (deprecated_generic_find_dummy_frame (get_frame_pc (fi), fi->frame)) + return deprecated_read_register_dummy (get_frame_pc (fi), fi->frame, S390_PC_REGNUM); s390_frame_init_saved_regs (fi); if (fi->extra_info) @@ -1008,8 +1008,8 @@ s390_frame_chain (struct frame_info *thisframe) { CORE_ADDR prev_fp = 0; - if (deprecated_generic_find_dummy_frame (thisframe->pc, thisframe->frame)) - return deprecated_read_register_dummy (thisframe->pc, thisframe->frame, + if (deprecated_generic_find_dummy_frame (get_frame_pc (thisframe), thisframe->frame)) + return deprecated_read_register_dummy (get_frame_pc (thisframe), thisframe->frame, S390_SP_REGNUM); else { @@ -1018,7 +1018,7 @@ s390_frame_chain (struct frame_info *thisframe) struct frame_extra_info prev_fextra_info; memset (&prev_fextra_info, 0, sizeof (prev_fextra_info)); - if (thisframe->pc) + if (get_frame_pc (thisframe)) { CORE_ADDR saved_pc, sig_pc; |