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.
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)
".*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
#