| 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\\."
|
|
|