From: Yao Qi Date: Tue, 25 Sep 2012 00:55:15 +0000 (+0000) Subject: gdb/testsuite: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1e5fd6938feffd9c7f2d9732b59413d210602a6;p=binutils-gdb.git gdb/testsuite: * gdb.mi/mi2-cli.exp: Check breakpoint notification. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index dfb6b41bd9f..da01f8d32cf 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-09-25 Yao Qi + + * gdb.mi/mi2-cli.exp: Check breakpoint notification. + 2012-09-21 Jan Kratochvil 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 0ef0d765a55..892e45746fb 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"