diff options
author | Stan Shebs <shebs@codesourcery.com> | 1995-04-21 19:09:01 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1995-04-21 19:09:01 +0000 |
commit | 66d05e03ad416a1038df2d26ddcdaf97be94e189 (patch) | |
tree | 8ed68a75caa8cc65f3cee6c7bd3ea9c1fcd8eb3c /gdb/sh-tdep.c | |
parent | 1f2025d9c1cefb7a1d6c50753d8a3c11e3a46556 (diff) | |
download | gdb-66d05e03ad416a1038df2d26ddcdaf97be94e189.zip gdb-66d05e03ad416a1038df2d26ddcdaf97be94e189.tar.gz gdb-66d05e03ad416a1038df2d26ddcdaf97be94e189.tar.bz2 |
* sh-tdep.c (sh-opc.h): Don't include.
(gdbcore.h): Include.
(frame_find_saved_regs): Remove unused local.
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r-- | gdb/sh-tdep.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index b35b2dc..5be266c 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -1,5 +1,5 @@ -/* Target-machine dependent code for Hitachi Super-H, for GDB. - Copyright (C) 1993 Free Software Foundation, Inc. +/* Target-dependent code for Hitachi Super-H, for GDB. + Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. This file is part of GDB. @@ -28,11 +28,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "symtab.h" #include "gdbtypes.h" #include "gdbcmd.h" +#include "gdbcore.h" #include "value.h" #include "dis-asm.h" -#include "../opcodes/sh-opc.h" - - /* Prologue looks like [mov.l <regs>,@-r15]... @@ -104,12 +102,11 @@ sh_frame_chain (frame) return 0; } -/* Put here the code to store, into a struct frame_saved_regs, - the addresses of the saved registers of frame described by FRAME_INFO. +/* Put here the code to store, into a struct frame_saved_regs, the + addresses of the saved registers of frame described by FRAME_INFO. This includes special registers such as pc and fp saved in special - ways in the stack frame. sp is even more special: - the address we return for it IS the sp for the next frame. */ - + ways in the stack frame. sp is even more special: the address we + return for it IS the sp for the next frame. */ void frame_find_saved_regs (fi, fsr) @@ -123,7 +120,6 @@ frame_find_saved_regs (fi, fsr) int pc; int opc; int insn; - int hadf; int r3_val = 0; opc = pc = get_pc_function_start (fi->pc); @@ -244,6 +240,7 @@ init_extra_frame_info (fromleaf, fi) struct frame_info *fi; { struct frame_saved_regs dummy; + frame_find_saved_regs (fi, &dummy); } |