aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 51fef85..14d51fd 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -2029,6 +2029,8 @@ finish_command (char *arg, int from_tty)
entering THISFRAME. */
frame = skip_tailcall_frames (frame);
+ frame = skip_unwritable_frames (frame);
+
if (frame == NULL)
error (_("Cannot find the caller frame."));