This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite patch] Fix 7.11 regression: gdb.dwarf2/dw2-undefined-ret-addr.exp [now with the patch]


a038fa3e14a477d4d72a26c2e139fa47d2774be2 is the first bad commit
commit a038fa3e14a477d4d72a26c2e139fa47d2774be2
Author: Markus Metzger <>
    stack: check frame_unwind_caller_id
[PATCH v3 2/3] stack: check frame_unwind_caller_id
Message-Id: <>

 (gdb) PASS: gdb.dwarf2/dw2-undefined-ret-addr.exp: up refuses to go up
 info frame
 Stack level 0, frame at 0x0:
- rip = 0x40059a in stop_frame (dw2-undefined-ret-addr.c:22); saved rip = <not saved>
+ rip = 0x40059a in stop_frame (dw2-undefined-ret-addr.c:22); saved rip = <unavailable>
  Outermost frame: outermost
  source language c.
  Arglist at 0x7fffffffd610, args: 
  Locals at 0x7fffffffd610, Previous frame's sp is 0x7fffffffd620
  Saved registers:
   rbp at 0x7fffffffd610
-(gdb) PASS: gdb.dwarf2/dw2-undefined-ret-addr.exp: info frame
+(gdb) FAIL: gdb.dwarf2/dw2-undefined-ret-addr.exp: info frame

It happens on normal native Fedora 23 x86_64.

I am not completely sure about the reasons but it looks to me GDB behavior has
just changed.

OK for check-in?

2016-04-08  Jan Kratochvil  <>

	* gdb.dwarf2/dw2-undefined-ret-addr.exp: Expect <unavailable>.

diff --git a/gdb/testsuite/gdb.dwarf2/dw2-undefined-ret-addr.exp b/gdb/testsuite/gdb.dwarf2/dw2-undefined-ret-addr.exp
index c666584..e43054b 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-undefined-ret-addr.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-undefined-ret-addr.exp
@@ -48,7 +48,7 @@ gdb_test "up" \
 # doesn't cause an error, and shows "<not saved>".
 gdb_test "info frame" [multi_line \
     "Stack level 0, frame at $hex\:" \
-    " rip = $hex in stop_frame \\(dw2-undefined-ret-addr\\.c:22\\); saved rip = <not saved>" \
+    " rip = $hex in stop_frame \\(dw2-undefined-ret-addr\\.c:22\\); saved rip = <unavailable>" \
     " Outermost frame: outermost" \
     " source language c\\." \
     " Arglist at $hex, args\: " \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]