aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-11-24 14:16:38 +0000
committerAndrew Cagney <cagney@redhat.com>2002-11-24 14:16:38 +0000
commit7d8547c9602def946b932d1416593b8c44456d65 (patch)
tree3cf93a2e0f86830aabbbf60a4d6b5faeb721d338 /gdb/blockframe.c
parent40fb7a1f93246339ecf4dbb5d76d03c443c6ab06 (diff)
downloadfsf-binutils-gdb-7d8547c9602def946b932d1416593b8c44456d65.zip
fsf-binutils-gdb-7d8547c9602def946b932d1416593b8c44456d65.tar.gz
fsf-binutils-gdb-7d8547c9602def946b932d1416593b8c44456d65.tar.bz2
2002-11-23 Andrew Cagney <ac131313@redhat.com>
* blockframe.c (find_frame_addr_in_frame_chain): Move function from here ... * varobj.c (find_frame_addr_in_frame_chain): ... to here. (varobj_create): Note that frame ID should be used. * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index da88497..d21fc9b 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -643,27 +643,6 @@ block_innermost_frame (struct block *block)
}
}
-/* Return the full FRAME which corresponds to the given CORE_ADDR
- or NULL if no FRAME on the chain corresponds to CORE_ADDR. */
-
-struct frame_info *
-find_frame_addr_in_frame_chain (CORE_ADDR frame_addr)
-{
- struct frame_info *frame = NULL;
-
- if (frame_addr == (CORE_ADDR) 0)
- return NULL;
-
- while (1)
- {
- frame = get_prev_frame (frame);
- if (frame == NULL)
- return NULL;
- if (FRAME_FP (frame) == frame_addr)
- return frame;
- }
-}
-
/* Are we in a call dummy? The code below which allows DECR_PC_AFTER_BREAK
below is for infrun.c, which may give the macro a pc without that
subtracted out. */