From 50abf9e57bf73e9b7fc5a1bfa83bcea1557ef029 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 2 Jan 2003 22:20:47 +0000 Subject: 2003-01-02 Andrew Cagney * 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. --- gdb/ns32k-tdep.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/ns32k-tdep.c') diff --git a/gdb/ns32k-tdep.c b/gdb/ns32k-tdep.c index 6e51b83..f1d084f 100644 --- a/gdb/ns32k-tdep.c +++ b/gdb/ns32k-tdep.c @@ -186,7 +186,7 @@ umax_frame_num_args (struct frame_info *fi) int width; numargs = -1; - enter_addr = ns32k_get_enter_addr ((fi)->pc); + enter_addr = ns32k_get_enter_addr (get_frame_pc (fi)); if (enter_addr > 0) { pc = ((enter_addr == 1) @@ -308,7 +308,7 @@ ns32k_frame_chain (struct frame_info *frame) FP value, and that address is saved at the previous FP value as a 4-byte word. */ - if (inside_entry_file (frame->pc)) + if (inside_entry_file (get_frame_pc (frame))) return 0; return (read_memory_integer (frame->frame, 4)); @@ -351,7 +351,7 @@ ns32k_frame_saved_pc (struct frame_info *frame) static CORE_ADDR ns32k_frame_args_address (struct frame_info *frame) { - if (ns32k_get_enter_addr (frame->pc) > 1) + if (ns32k_get_enter_addr (get_frame_pc (frame)) > 1) return (frame->frame); return (read_register (SP_REGNUM) - 4); @@ -380,7 +380,7 @@ ns32k_frame_init_saved_regs (struct frame_info *frame) frame_saved_regs_zalloc (frame); - enter_addr = ns32k_get_enter_addr (frame->pc); + enter_addr = ns32k_get_enter_addr (get_frame_pc (frame)); if (enter_addr > 1) { regmask = read_memory_integer (enter_addr + 1, 1) & 0xff; -- cgit v1.1