diff options
author | Stan Shebs <shebs@codesourcery.com> | 1994-11-04 01:19:29 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1994-11-04 01:19:29 +0000 |
commit | 669caa9c191f9bfeaed53d65b4f1d4967b22a380 (patch) | |
tree | fb2a02c6e673aee73f93455ed14e561a4adb8e02 /gdb/h8300-tdep.c | |
parent | 0128cbae50e269c59d85affb5c104329fd8d2ffd (diff) | |
download | gdb-669caa9c191f9bfeaed53d65b4f1d4967b22a380.zip gdb-669caa9c191f9bfeaed53d65b4f1d4967b22a380.tar.gz gdb-669caa9c191f9bfeaed53d65b4f1d4967b22a380.tar.bz2 |
Replace useless FRAME, FRAME_ADDR types with struct frame_info *
and CORE_ADDR, respectively.
* frame.h (FRAME, FRAME_INFO_ID, FRAME_ADDR): Remove.
* blockframe.c (get_frame_info): Remove.
* a29k-tdep.c, alpha-tdep.c, blockframe.c, breakpoint.c,
breakpoint.h, energize.c, findvar.c, gdbtk.c, gould-pinsn.c,
h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, i386-tdep.c, i960-tdep.c,
infcmd.c, inferior.h, infrun.c, m68k-tdep.c, m88k-tdep.c,
mips-tdep.c, nindy-tdep.c, printcmd.c, pyr-tdep.c, rs6000-tdep.c,
sh-tdep.c, sparc-tdep.c, stack.c, valops.c, z8k-tdep.c,
config/a29k/tm-a29k.h, config/alpha/tm-alpha.h,
config/gould/tm-pn.h, config/h8300/tm-h8300.h,
config/h8500/tm-h8500.h, config/mips/tm-mips.h,
config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h,
config/pyr/tm-pyr.h, config/sparc/tm-sparc.h): Replace FRAME with
struct frame_info * everywhere, replace FRAME_ADDR with CORE_ADDR,
rename variables consistently (using `frame' or `fi'), remove
calls to get_frame_info and FRAME_INFO_ID, remove comments about
FRAME and FRAME_ADDR cruftiness.
Diffstat (limited to 'gdb/h8300-tdep.c')
-rw-r--r-- | gdb/h8300-tdep.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c index 02f50a7..9252ca0 100644 --- a/gdb/h8300-tdep.c +++ b/gdb/h8300-tdep.c @@ -117,9 +117,9 @@ print_insn (memaddr, stream) For us, the frame address is its stack pointer value, so we look up the function prologue to determine the caller's sp value, and return it. */ -FRAME_ADDR -FRAME_CHAIN (thisframe) - FRAME thisframe; +CORE_ADDR +h8300_frame_chain (thisframe) + struct frame_info *thisframe; { frame_find_saved_regs (thisframe, (struct frame_saved_regs *) 0); return thisframe->fsr->regs[SP_REGNUM]; @@ -208,7 +208,7 @@ static CORE_ADDR examine_prologue (ip, limit, after_prolog_fp, fsr, fi) register CORE_ADDR ip; register CORE_ADDR limit; - FRAME_ADDR after_prolog_fp; + CORE_ADDR after_prolog_fp; struct frame_saved_regs *fsr; struct frame_info *fi; { @@ -331,7 +331,7 @@ init_extra_frame_info (fromleaf, fi) CORE_ADDR frame_saved_pc (frame) - FRAME frame; + struct frame_info *frame; { return frame->from_pc; } @@ -373,19 +373,15 @@ h8300_pop_frame () { unsigned regnum; struct frame_saved_regs fsr; - struct frame_info *fi; - - FRAME frame = get_current_frame (); + struct frame_info *frame = get_current_frame (); fi = get_frame_info (frame); - get_frame_saved_regs (fi, &fsr); + get_frame_saved_regs (frame, &fsr); for (regnum = 0; regnum < 8; regnum++) { if (fsr.regs[regnum]) - { - write_register (regnum, read_memory_integer(fsr.regs[regnum]), BINWORD); - } + write_register (regnum, read_memory_integer(fsr.regs[regnum]), BINWORD); flush_cached_frames (); } |