Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.dwarf2/dw2-dup-frame.c ('k') | gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp
diff --git a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp b/gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp
similarity index 58%
copy from gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
copy to gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp
index a810f7c012411bd6dd0412b222d1445cf08b7211..a57ab8ab478ea1e701e31588ac38ff480e979b29 100644
--- a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp
@@ -1,4 +1,4 @@
-# Copyright 2011-2012 Free Software Foundation, Inc.
+# Copyright 2013 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -16,20 +16,29 @@ load_lib dwarf.exp
# This test can only be run on targets which support DWARF-2 and use gas.
if {![dwarf2_support]} {
- return 0
+ return 0
+}
+
+# This test can only be run on x86_64 targets.
+if {![istarget "x86_64-*-*"] || ![is_lp64_target]} {
+ return 0
}
standard_testfile .S
-set mainfile main.c
-set executable ${testfile}
-if [prepare_for_testing ${testfile}.exp $executable "${srcfile} ${mainfile}" {}] {
+if { [prepare_for_testing $testfile.exp $testfile $srcfile {nodebug}] } {
return -1
}
-# DW_OP_GNU_implicit_pointer implementation requires a valid frame.
-if ![runto_main] {
+if ![runto stop_frame] {
+ perror "Failed to stop in stop_frame"
return -1
}
-gdb_test "p p->f" " = <optimized out>"
+gdb_test "bt" \
+ "#0 stop_frame \[^\r\n\]*\r\nBacktrace stopped: previous frame identical to this frame \\(corrupt stack\\?\\)" \
+ "backtrace from stop_frame"
+
+gdb_test "up" \
+ "Initial frame selected; you cannot go up\\\." \
+ "up from stop_frame"
« no previous file with comments | « gdb/testsuite/gdb.dwarf2/dw2-dup-frame.c ('k') | gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698