diff options
author | Yao Qi <yao@codesourcery.com> | 2012-09-25 00:55:15 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-09-25 00:55:15 +0000 |
commit | a1e5fd6938feffd9c7f2d9732b59413d210602a6 (patch) | |
tree | b7dd6930e843fefb0dffc50ad385400f9f11aa43 /gdb | |
parent | 6919373875006c188f38c57b4387730cbf1eb41a (diff) | |
download | gdb-a1e5fd6938feffd9c7f2d9732b59413d210602a6.zip gdb-a1e5fd6938feffd9c7f2d9732b59413d210602a6.tar.gz gdb-a1e5fd6938feffd9c7f2d9732b59413d210602a6.tar.bz2 |
gdb/testsuite:
* gdb.mi/mi2-cli.exp: Check breakpoint notification.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi2-cli.exp | 20 |
2 files changed, 8 insertions, 16 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index dfb6b41..da01f8d 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-09-25 Yao Qi <yao@codesourcery.com> + + * gdb.mi/mi2-cli.exp: Check breakpoint notification. + 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com> Fix internal error on canonicalization of clang types. diff --git a/gdb/testsuite/gdb.mi/mi2-cli.exp b/gdb/testsuite/gdb.mi/mi2-cli.exp index 0ef0d76..892e457 100644 --- a/gdb/testsuite/gdb.mi/mi2-cli.exp +++ b/gdb/testsuite/gdb.mi/mi2-cli.exp @@ -77,13 +77,9 @@ mi_gdb_test "-interpreter-exec console \"show args\"" \ {\~"Argument list to give program being debugged when it is started is \\\"foobar\\\"\.\\n".*\^done} \ "-interpreter-exec console \"show args\"" -# NOTE: cagney/2003-02-03: Not yet. -# mi_gdb_test "-interpreter-exec console \"break callee4\"" \ -# {(&.*)*.*~"Breakpoint 2 at.*\\n".*=breakpoint-create,number="2".*\^done} \ -# "-interpreter-exec console \"break callee4\"" mi_gdb_test "-interpreter-exec console \"break callee4\"" \ - {(&.*)*.*~"Breakpoint 2 at.*\\n".*\^done} \ - "-interpreter-exec console \"break callee4\"" + {(&.*)*.*~"Breakpoint 2 at.*\\n".*=breakpoint-created,bkpt=\{number="2",type="breakpoint".*\}.*\n\^done} \ + "-interpreter-exec console \"break callee4\"" mi_gdb_test "-interpreter-exec console \"info break\"" \ {\~"Num[ \t]*Type[ \t]*Disp[ \t]*Enb[ \t]*Address[ \t]*What\\n".*~"2[ \t]*breakpoint[ \t]*keep[ \t]*y[ \t]*0x[0-9A-Fa-f]+[ \t]*in callee4 at .*basics.c:[0-9]+\\n".*\^done} \ @@ -102,13 +98,9 @@ mi_execute_to "exec-continue" "breakpoint-hit" "callee4" "" ".*basics.c" $line_c { "" "disp=\"keep\"" } \ "continue to callee4" -# NOTE: cagney/2003-02-03: Not yet. -# mi_gdb_test "100-interpreter-exec console \"delete 2\"" \ -# {.*=breakpoint-delete,number=\"2\".*\^done} \ -# "-interpreter-exec console \"delete 2\"" mi_gdb_test "100-interpreter-exec console \"delete 2\"" \ - {=breakpoint-deleted,id=\"2\"\r\n100\^done} \ - "-interpreter-exec console \"delete 2\"" + {.*=breakpoint-deleted,id=\"2\".*\^done} \ + "-interpreter-exec console \"delete 2\"" # NOTE: cagney/2003-02-03: Not yet. # mi_gdb_test "200-interpreter-exec console \"up\"" \ @@ -160,10 +152,6 @@ if {$async} { mi_execute_to "interpreter-exec console step" $reason "callee4" "" ".*basics.c" $line_callee4_next \ "" "check *stopped from CLI command" -# NOTE: cagney/2003-02-03: Not yet. -# mi_gdb_test "-break-insert -t basics.c:$line_main_hello" \ -# {.*=breakpoint-create,number="3".*\^done} \ -# "-break-insert -t basics.c:\$line_main_hello" mi_gdb_test "600-break-insert -t basics.c:$line_main_hello" \ {600\^done,bkpt=.number="3",type="breakpoint".*\}} \ "-break-insert -t basics.c:$line_main_hello" |