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

Unified Diff: gdb/testsuite/gdb.go/unsafe.exp

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 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.go/types.go ('k') | gdb/testsuite/gdb.go/unsafe.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.go/unsafe.exp
diff --git a/gdb/testsuite/gdb.base/watchpoint-delete.exp b/gdb/testsuite/gdb.go/unsafe.exp
similarity index 57%
copy from gdb/testsuite/gdb.base/watchpoint-delete.exp
copy to gdb/testsuite/gdb.go/unsafe.exp
index 0c5deaad7a08969946d2dd44d57c660bc8b45def..eb536b2d841cf5d6e6ffecbdfc462487795ecb43 100644
--- a/gdb/testsuite/gdb.base/watchpoint-delete.exp
+++ b/gdb/testsuite/gdb.go/unsafe.exp
@@ -1,5 +1,7 @@
-# Copyright 2010-2012 Free Software Foundation, Inc.
+# This testcase is part of GDB, the GNU debugger.
+# Copyright 2012 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
# the Free Software Foundation; either version 3 of the License, or
@@ -13,26 +15,29 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-set testfile "watchpoint-delete"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+# Test package "unsafe".
+
+load_lib "go.exp"
+
+if { [skip_go_tests] } { continue }
-if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
- untested ${testfile}.exp
+standard_testfile .go
+
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug go}] } {
return -1
}
-# It is more compatible this way.
-gdb_test_no_output "set can-use-hw-watchpoints 0"
+set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
-if ![runto_main] {
+if { [go_runto_main] < 0 } {
+ untested $testfile
return -1
}
-# Ensure there is a parent frame to create related bp_watchpoint_scope.
-gdb_breakpoint [gdb_get_line_number "break-here"]
-gdb_continue_to_breakpoint "break-here" ".* break-here .*"
+if { [gdb_breakpoint ${srcfile}:${bp_location1}] } {
+ pass "setting breakpoint 1"
+}
-gdb_test "watch x" {Watchpoint [0-9]+: x}
+gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "Going to first breakpoint"
-gdb_test_no_output {delete $bpnum}
+gdb_test "print unsafe.Sizeof(42)" ".* = 4"
« no previous file with comments | « gdb/testsuite/gdb.go/types.go ('k') | gdb/testsuite/gdb.go/unsafe.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698