diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2016-07-22 10:01:19 +0200 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2016-10-06 14:35:07 +0200 |
commit | 3929b7e909b48a20d5dac6631e519f3b6b2ac84e (patch) | |
tree | fd17c4f0e3cb73441b2be780c32d4098df7eaf56 /gdb/stack.c | |
parent | f8da6fe399c8dafa98e7dbed36d3562a919768f5 (diff) | |
download | gdb-3929b7e909b48a20d5dac6631e519f3b6b2ac84e.zip gdb-3929b7e909b48a20d5dac6631e519f3b6b2ac84e.tar.gz gdb-3929b7e909b48a20d5dac6631e519f3b6b2ac84e.tar.bz2 |
stack: fix gdb.dwarf2/dw2-undefined-ret-addr.exp regression
Commit a038fa3e14a4 stack: check frame_unwind_caller_id adds a frame_id check to
frame_info and treats a missing frame_id as NOT_AVAILABLE_ERROR. This causes a
regression in gdb.dwarf2/dw2-undefined-ret-addr.exp.
Treat a missing frame_id as OPTIMIZED_OUT_ERROR instead.
See also https://sourceware.org/ml/gdb-patches/2016-07/msg00273.html.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index 3ce3138..c77bfc0 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -1531,7 +1531,7 @@ frame_info (char *addr_exp, int from_tty) printf_filtered ("saved %s = ", pc_regname); if (!frame_id_p (frame_unwind_caller_id (fi))) - val_print_unavailable (gdb_stdout); + val_print_not_saved (gdb_stdout); else { TRY |