mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 21:34:46 +08:00
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.
This commit is contained in:
@ -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. */
|
||||
|
Reference in New Issue
Block a user