diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2016-02-05 09:32:53 +0100 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2016-02-12 09:44:42 +0100 |
commit | 2f3ef606b91298855e9ea13ae0e0316c23f06c9b (patch) | |
tree | b8a03927519de2b858f1dd3db151a29e0326a769 /gdb/infcmd.c | |
parent | 95c00d15cbd7234382513975af72d21c395c82c0 (diff) | |
download | gdb-2f3ef606b91298855e9ea13ae0e0316c23f06c9b.zip gdb-2f3ef606b91298855e9ea13ae0e0316c23f06c9b.tar.gz gdb-2f3ef606b91298855e9ea13ae0e0316c23f06c9b.tar.bz2 |
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.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index df13896..930dc61 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -2002,8 +2002,7 @@ finish_command (char *arg, int from_tty) /* Ignore TAILCALL_FRAME type frames, they were executed already before entering THISFRAME. */ - while (get_frame_type (frame) == TAILCALL_FRAME) - frame = get_prev_frame (frame); + frame = skip_tailcall_frames (frame); /* Find the function we will return from. */ |