aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-09-13 22:53:36 +0000
committerAndrew Cagney <cagney@redhat.com>2002-09-13 22:53:36 +0000
commit905abb3f14417c53440d68bc2fb94a187c71bc05 (patch)
treee3dc7f54a570d9617725f0bf87895290e7d23ea8 /gdb/frame.c
parent6415945597c5668558224a7241d6592d76419bc9 (diff)
downloadgdb-905abb3f14417c53440d68bc2fb94a187c71bc05.zip
gdb-905abb3f14417c53440d68bc2fb94a187c71bc05.tar.gz
gdb-905abb3f14417c53440d68bc2fb94a187c71bc05.tar.bz2
2002-09-13 Andrew Cagney <ac131313@redhat.com>
* frame.c (find_saved_register): Delete function. * frame.h (find_saved_register): Delete declaration. Fix PR gdb/631.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r--gdb/frame.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 3b17bf5..2da0305 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -78,43 +78,6 @@ frame_find_by_id (struct frame_id id)
return NULL;
}
-/* FIND_SAVED_REGISTER ()
-
- Return the address in which frame FRAME's value of register REGNUM
- has been saved in memory. Or return zero if it has not been saved.
- If REGNUM specifies the SP, the value we return is actually
- the SP value, not an address where it was saved. */
-
-CORE_ADDR
-find_saved_register (struct frame_info *frame, int regnum)
-{
- register struct frame_info *frame1 = NULL;
- register CORE_ADDR addr = 0;
-
- if (frame == NULL) /* No regs saved if want current frame */
- return 0;
-
- /* Note that the following loop assumes that registers used in
- frame x will be saved only in the frame that x calls and frames
- interior to it. */
- while (1)
- {
- QUIT;
- frame1 = get_next_frame (frame);
- if (frame1 == 0)
- break;
- frame = frame1;
- FRAME_INIT_SAVED_REGS (frame1);
- if (frame1->saved_regs[regnum])
- {
- addr = frame1->saved_regs[regnum];
- break;
- }
- }
-
- return addr;
-}
-
void
frame_register_unwind (struct frame_info *frame, int regnum,
int *optimizedp, enum lval_type *lvalp,