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

Unified Diff: gdb/testsuite/gdb.dwarf2/dw2-dos-drive.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-dos-drive.S ('k') | gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.dwarf2/dw2-dos-drive.exp
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.exp b/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.exp
similarity index 67%
copy from gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.exp
copy to gdb/testsuite/gdb.dwarf2/dw2-dos-drive.exp
index 6f8a764cfb97630f1fa6ddac910050ac13a54e75..ecfd23ad2bf898bed93f7cad3d07e4bbaaf9e0fd 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.exp
@@ -1,4 +1,4 @@
-# Copyright 2010-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
@@ -14,7 +14,6 @@
# 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
}
@@ -22,16 +21,21 @@ if {![dwarf2_support]} {
standard_testfile .S
set executable ${testfile}
-# First try referencing DW_AT_frame_base which is not defined.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
return -1
}
clean_restart $executable
-# The first access (as we do not use -readnow) prints some:
-# Dwarf Error: Cannot find DIE at 0x0 referenced from DIE at 0x29 [in module ...]
-gdb_test "ptype f"
+gdb_test_no_output "set breakpoint pending off"
-gdb_test "ptype f"
-gdb_test "p 5" " = 5" "is alive"
+gdb_test "break 'z:file.c':func" {Breakpoint [0-9]+ at .*}
+
+set dos [expr [istarget "*-*-cygwin*"] || [istarget "i?86-*-mingw*"] \
+ || [istarget "*-*-msdosdjgpp*"] || [istarget "*-*-go32*"] ]
+
+if { $dos } {
+ gdb_test "break file.c:func" {Breakpoint [0-9]+ at .*}
+} else {
+ unsupported "break file.c:func"
+}
« no previous file with comments | « gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S ('k') | gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698