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

Unified Diff: gdb/testsuite/gdb.ada/bp_reset.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.ada/bp_range_type/pck.ads ('k') | gdb/testsuite/gdb.ada/bp_reset/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_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 \\(\\).*"
« no previous file with comments | « gdb/testsuite/gdb.ada/bp_range_type/pck.ads ('k') | gdb/testsuite/gdb.ada/bp_reset/foo.adb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698