mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
2002-11-18 Andrew Cagney <ac131313@redhat.com>
* stack.c (frame_relative_level): Copy function from here ... * frame.c (frame_relative_level): ...to here.
This commit is contained in:
12
gdb/frame.c
12
gdb/frame.c
@@ -1007,6 +1007,18 @@ get_frame_pc (struct frame_info *frame)
|
||||
return frame->pc;
|
||||
}
|
||||
|
||||
/* Level of the selected frame: 0 for innermost, 1 for its caller, ...
|
||||
or -1 for a NULL frame. */
|
||||
|
||||
int
|
||||
frame_relative_level (struct frame_info *fi)
|
||||
{
|
||||
if (fi == NULL)
|
||||
return -1;
|
||||
else
|
||||
return fi->level;
|
||||
}
|
||||
|
||||
enum frame_type
|
||||
get_frame_type (struct frame_info *frame)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user