aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2006-06-09 20:01:39 +0000
committerNathan Sidwell <nathan@codesourcery.com>2006-06-09 20:01:39 +0000
commitce3bfcb45823f588de330be312bb0e63a1bfa1a3 (patch)
treeb3ec06a26004f61eb8a506f3170eeba168ab966b
parentfdadd5333c3878eb001446d4bba21c11a7bfba05 (diff)
downloadfsf-binutils-gdb-ce3bfcb45823f588de330be312bb0e63a1bfa1a3.zip
fsf-binutils-gdb-ce3bfcb45823f588de330be312bb0e63a1bfa1a3.tar.gz
fsf-binutils-gdb-ce3bfcb45823f588de330be312bb0e63a1bfa1a3.tar.bz2
gdb/testsuite/
* gdb.base/break.c: Add breakpoint 10a marker. * gdb.base/break.exp: Check breakpoint on }
-rw-r--r--ChangeLog.csl4
-rw-r--r--gdb/testsuite/gdb.base/break.c2
-rw-r--r--gdb/testsuite/gdb.base/break.exp11
3 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl
index 5e41d67..ce94383 100644
--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,5 +1,9 @@
2006-06-09 Nathan Sidwell <nathan@codesourcery.com>
+ gdb/testsuite/
+ * gdb.base/break.c: Add breakpoint 10a marker.
+ * gdb.base/break.exp: Check breakpoint on }
+
gdb/
* m68k-tdep.c (m68k_frame_align): New.
(m68k_push_dummy_call): Don't align here.
diff --git a/gdb/testsuite/gdb.base/break.c b/gdb/testsuite/gdb.base/break.c
index bf398fc..db8dbdf 100644
--- a/gdb/testsuite/gdb.base/break.c
+++ b/gdb/testsuite/gdb.base/break.c
@@ -99,7 +99,7 @@ char *argv[], **envp;
marker4 (177601976L);
argc = (argc == 12345); /* This is silly, but we can step off of it */ /* set breakpoint 2 here */
return argc; /* set breakpoint 10 here */
-}
+} /* set breakpoint 10a here */
#ifdef PROTOTYPES
int factorial (int value)
diff --git a/gdb/testsuite/gdb.base/break.exp b/gdb/testsuite/gdb.base/break.exp
index 4a704fb..8ba761a 100644
--- a/gdb/testsuite/gdb.base/break.exp
+++ b/gdb/testsuite/gdb.base/break.exp
@@ -262,6 +262,17 @@ gdb_test "step" \
".*Breakpoint \[0-9\]+, main \\(argc=.*, argv=.*, envp=.*\\) at .*$srcfile:$bp_location10.*$bp_location10\[\t \]+return argc;.*breakpoint 10 here.*" \
"step onto breakpoint"
+# Check to see if breakpoint can be set on ending brace of function
+set bp_location10a [gdb_get_line_number "set breakpoint 10a here"]
+
+gdb_test "break $bp_location10a" \
+ "Breakpoint.*at.* file .*$srcfile, line $bp_location10a\\." \
+ "setting breakpoint at }"
+
+gdb_test "continue" \
+ ".*Breakpoint \[0-9\]+, main \\(argc=.*, argv=.*, envp=.*\\) at .*$srcfile:$bp_location10a.*$bp_location10a\[\t \]+}.*breakpoint 10a here.*" \
+ "continue to breakpoint at }"
+
#
# delete all breakpoints so we can start over, course this can be a test too
#