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

Unified Diff: gdb/testsuite/gdb.ada/bp_on_var.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.ada/bp_enum_homonym/pck.ads ('k') | gdb/testsuite/gdb.ada/bp_on_var/foo.adb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.ada/bp_on_var.exp
diff --git a/gdb/testsuite/gdb.ada/widewide.exp b/gdb/testsuite/gdb.ada/bp_on_var.exp
similarity index 57%
copy from gdb/testsuite/gdb.ada/widewide.exp
copy to gdb/testsuite/gdb.ada/bp_on_var.exp
index dbc5e5b49606dd83d673a545ef4dde6741a36ce5..73b5cd759b3b8dda93379b89ff01a0bb9a9dc555 100644
--- a/gdb/testsuite/gdb.ada/widewide.exp
+++ b/gdb/testsuite/gdb.ada/bp_on_var.exp
@@ -1,4 +1,4 @@
-# Copyright 2011-2012 Free Software Foundation, Inc.
+# 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
@@ -15,7 +15,7 @@
load_lib "ada.exp"
-set testdir "widewide"
+set testdir "bp_on_var"
set testfile "${testdir}/foo"
set srcfile ${srcdir}/${subdir}/${testfile}.adb
set binfile ${objdir}/${subdir}/${testfile}
@@ -25,23 +25,24 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
return -1
}
-clean_restart ${testfile}
+# Test inserting breakpoint on pck.my_global_variable.
-set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb]
-if ![runto "foo.adb:$bp_location" ] then {
- perror "Couldn't run ${testfile}"
- return
-}
+clean_restart ${testfile}
-gdb_test "print some_easy" "= 74 'J'"
+# We are going to insert breakpoints using locations that are invalid.
+# Set "breakpoint pending" to "off" in order to avoid having to deal
+# with GDB asking whether to insert a pending breakpoint or not.
+gdb_test_no_output "set breakpoint pending off"
-gdb_test "print some_larger" "= 48879 '\\\[\"0000beef\"\\\]'"
+gdb_test "break pck.my_global_variable" \
+ "Function \"pck\\.my_global_variable\" not defined\\."
-gdb_test "print some_big" "= 14335727 '\\\[\"00dabeef\"\\\]'"
-gdb_test "print my_wws" "= \" helo\""
+# Test inserting breakpoint on pck.my_hidden_variable.
-gdb_test "print my_wws(1)" "= 32 ' '"
+clean_restart ${testfile}
-gdb_test "print my_wws(2)" "= 104 'h'"
+gdb_test_no_output "set breakpoint pending off"
+gdb_test "break pck.my_hidden_variable" \
+ "Function \"pck\\.my_hidden_variable\" not defined\\."
« no previous file with comments | « gdb/testsuite/gdb.ada/bp_enum_homonym/pck.ads ('k') | gdb/testsuite/gdb.ada/bp_on_var/foo.adb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698