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

Unified Diff: gdb/testsuite/gdb.arch/i386-cfi-notcurrent.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.arch/i386-cfi-notcurrent.S ('k') | gdb/testsuite/gdb.arch/i386-cpuid.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-entry-value.exp b/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
similarity index 59%
copy from gdb/testsuite/gdb.dwarf2/dw2-entry-value.exp
copy to gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
index c52e27dc999525a8083f5fef0910f6fc84e59306..9c269014ced89fdc61ce1ae9db85facf570b9f87 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-entry-value.exp
+++ b/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
@@ -1,4 +1,4 @@
-# Copyright 2011-2012 Free Software Foundation, Inc.
+# Copyright 2012-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
@@ -12,14 +12,18 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-load_lib dwarf.exp
-# This test can only be run on targets which support DWARF-2 and use gas.
-if {![dwarf2_support]} {
- return 0
+# [RFA] DWARF frame unwinder executes one too many rows
+# http://sourceware.org/ml/gdb-patches/2012-07/msg00650.html
+
+if { ![is_x86_like_target] } {
+ return 0
}
-if { [prepare_for_testing dw2-entry-value.exp "dw2-entry-value" {dw2-entry-value-main.c dw2-entry-value.S} {nodebug}] } {
+set testfile "i386-cfi-notcurrent"
+set srcfile ${testfile}.S
+
+if [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {nodebug}] {
return -1
}
@@ -27,6 +31,4 @@ if ![runto f] {
return -1
}
-# FAIL was printing:
-# param=Unhandled dwarf expression opcode 0xf3
-gdb_test "frame" "param=<optimized out>.*" "<optimized out> is printed"
+gdb_test "backtrace" "#0 \[^\r\n\]* f \[^\r\n\]*\r\n#1 \[^\r\n\]* g \[^\r\n\]*\r\n#2 \[^\r\n\]* main \[^\r\n\]*"
« no previous file with comments | « gdb/testsuite/gdb.arch/i386-cfi-notcurrent.S ('k') | gdb/testsuite/gdb.arch/i386-cpuid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698