public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] stack: fix gdb.dwarf2/dw2-undefined-ret-addr.exp regression
@ 2016-07-22 11:13 Markus Metzger
  2016-10-06  9:32 ` Yao Qi
  0 siblings, 1 reply; 4+ messages in thread
From: Markus Metzger @ 2016-07-22 11:13 UTC (permalink / raw)
  To: gdb-patches; +Cc: qiyaoltc, palves

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.

2016-07-22  Markus Metzger  <markus.t.metzger@intel.com>

gdb/
	* stack.c (frame_info): Call val_print_not_saved instead of
	val_print_unavailable if frame_id check fails.
---
 gdb/stack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/stack.c b/gdb/stack.c
index b9e74df..9782457 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -1508,7 +1508,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
-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-06 12:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-22 11:13 [PATCH] stack: fix gdb.dwarf2/dw2-undefined-ret-addr.exp regression Markus Metzger
2016-10-06  9:32 ` Yao Qi
2016-10-06 11:03   ` Metzger, Markus T
2016-10-06 12:21     ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).