diff options
author | Daniel Jacobowitz <dan@debian.org> | 2002-05-13 01:18:19 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2002-05-13 01:18:19 +0000 |
commit | 1b7d4581838f18bfc760b78307417860e63dbcd3 (patch) | |
tree | c33c073e6b5eadf471a88499f2ea8e5449ec14b1 /gdb/testsuite/gdb.base | |
parent | b3e4d83023db978f2e64630d16f555bdf087117a (diff) | |
download | gdb-1b7d4581838f18bfc760b78307417860e63dbcd3.tar.gz |
2002-05-12 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/break.exp: Check 'break "marker2"'.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/break.exp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/break.exp b/gdb/testsuite/gdb.base/break.exp index 166f097eb57..e3aa922bc50 100644 --- a/gdb/testsuite/gdb.base/break.exp +++ b/gdb/testsuite/gdb.base/break.exp @@ -1,5 +1,5 @@ # Copyright 1988, 1990, 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000 +# 2000, 2002 # Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify @@ -84,6 +84,13 @@ gdb_test "break main" \ "breakpoint function" # +# test break at quoted function +# +gdb_test "break \"marker2\"" \ + "Breakpoint.*at.* file .*$srcfile, line.*" \ + "breakpoint quoted function" + +# # test break at function in file # gdb_test "break $srcfile:factorial" \ @@ -150,6 +157,7 @@ if {$hp_aCC_compiler} { gdb_test "info break" \ "Num Type\[ \]+Disp Enb Address\[ \]+What.* \[0-9\]+\[\t \]+breakpoint keep y.* in main at .*$srcfile:$main_line.* +\[0-9\]+\[\t \]+breakpoint keep y.* in marker2 at .*$srcfile:4\[49\].* \[0-9\]+\[\t \]+breakpoint keep y.* in factorial$proto at .*$srcfile:96.* \[0-9\]+\[\t \]+breakpoint keep y.* in main at .*$srcfile:79.* \[0-9\]+\[\t \]+breakpoint keep y.* in main at .*$srcfile:79.* @@ -209,6 +217,11 @@ for {set i 6} {$i >= 1} {incr i -1} { } # +# Run until the breakpoint set at a quoted function +# +gdb_test continue "Continuing\\..*Breakpoint \[0-9\]+, (0x\[0-9a-f\]+ in )?marker2 \\(a=43\\) at .*$srcfile:4\[49\].*" \ + "run until quoted breakpoint" +# # run until the file:function breakpoint at a line number in a file # gdb_test continue "Continuing\\..*Breakpoint \[0-9\]+, main \\(argc=.*, argv=.*, envp=.*\\) at .*$srcfile:85.*85\[\t \]+argc = \\(argc == 12345\\);.*" \ |