frame: add skip_tailcall_frames

Add a new function skip_tailcall_frames to skip TAILCALL_FRAME frames.

gdb/
	* frame.h (skip_tailcall_frames): New.
	* frame.c (skip_tailcall_frames): New.
	(frame_pop): Call skip_tailcall_frames.
	* infcmd.c (finish_command): Call skip_tailcall_frames.
This commit is contained in:
Markus Metzger
2016-02-05 09:32:53 +01:00
parent 95c00d15cb
commit 2f3ef606b9
4 changed files with 24 additions and 4 deletions

View File

@@ -820,5 +820,9 @@ extern int frame_unwinder_is (struct frame_info *fi,
extern enum language get_frame_language (struct frame_info *frame);
/* Return the first non-tailcall frame above FRAME or FRAME if it is not a
tailcall frame. */
extern struct frame_info *skip_tailcall_frames (struct frame_info *frame);
#endif /* !defined (FRAME_H) */