| Index: gdb/testsuite/gdb.ada/bp_reset.exp
|
| diff --git a/gdb/testsuite/gdb.ada/fun_addr.exp b/gdb/testsuite/gdb.ada/bp_reset.exp
|
| similarity index 63%
|
| copy from gdb/testsuite/gdb.ada/fun_addr.exp
|
| copy to gdb/testsuite/gdb.ada/bp_reset.exp
|
| index 99249954532e614f81037db295b2a80949c53ac5..9a0f1f55acce031057f9dd8c26eb733b70221415 100644
|
| --- a/gdb/testsuite/gdb.ada/fun_addr.exp
|
| +++ b/gdb/testsuite/gdb.ada/bp_reset.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 2008-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
|
| @@ -15,23 +15,23 @@
|
|
|
| load_lib "ada.exp"
|
|
|
| -set testdir "fun_addr"
|
| -set testfile "${testdir}/foo"
|
| -set srcfile ${srcdir}/${subdir}/${testfile}.adb
|
| -set binfile ${objdir}/${subdir}/${testfile}
|
| +standard_ada_testfile foo
|
|
|
| -file mkdir ${objdir}/${subdir}/${testdir}
|
| if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
|
| return -1
|
| }
|
|
|
| clean_restart ${testfile}
|
|
|
| -# Verify that we are able to print the address of a function when
|
| -# the inferior is *not* running (no frame).
|
| +gdb_test "break nested_sub" \
|
| + "Breakpoint $decimal at $hex: file .*foo.adb, line $decimal\\."
|
|
|
| -gdb_test "print foo'address" \
|
| - "= .* 0x\[0-9a-zA-Z\]+ <foo>" \
|
| - "print foo'address"
|
| +gdb_test "break do_nothing" \
|
| + "Breakpoint $decimal at $hex: file .*pck.adb, line $decimal\\."
|
|
|
| +# Run the program. Make sure the program runs until it hits
|
| +# the first breakpoint inside nested_sub.
|
| +
|
| +gdb_run_cmd
|
| +gdb_test "" "Breakpoint $decimal, foo\\.nested_sub \\(\\).*"
|
|
|
|
|