diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2006-06-09 20:01:39 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2006-06-09 20:01:39 +0000 |
commit | a85a557c84939f8b170746e89082a36d31603d59 (patch) | |
tree | bf41f6c031f3a2087c6c651e85438eb1e768bf9e | |
parent | d9ec1d786f1b408b1f1f1b63891e877ac791ba49 (diff) | |
download | gdb-a85a557c84939f8b170746e89082a36d31603d59.tar.gz |
gdb/testsuite/
* gdb.base/break.c: Add breakpoint 10a marker.
* gdb.base/break.exp: Check breakpoint on }
-rw-r--r-- | ChangeLog.csl | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/break.c | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/break.exp | 11 |
3 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl index 5e41d6793b0..ce94383132d 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 bf398fcca91..db8dbdf8145 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 4a704fbc6d9..8ba761a28e8 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 # |