forked from Imagelibrary/binutils-gdb
* stack.c (print_frame): For ui_out, output a list of arguments.
Update all tests. Update doco.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2001-06-25 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
|
* stack.c (print_frame): For ui_out, output a list of arguments.
|
||||||
|
|
||||||
2001-06-25 Kevin Buettner <kevinb@redhat.com>
|
2001-06-25 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* MAINTAINERS (paper trail): Update.
|
* MAINTAINERS (paper trail): Update.
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2001-06-25 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
|
* gdbmi.texinfo: Update output examples that contain stop reason
|
||||||
|
output, change the args=.... to a list.
|
||||||
|
(exec-return): Ditto.
|
||||||
|
|
||||||
2001-06-25 Andrew Cagney <ac131313@redhat.com>
|
2001-06-25 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
* mi-main.c (mi_cmd_data_read_memory): Output the memory contents
|
* mi-main.c (mi_cmd_data_read_memory): Output the memory contents
|
||||||
|
|||||||
@@ -936,7 +936,7 @@ Setting a watchpoint on a variable in the @code{main} function:
|
|||||||
^running
|
^running
|
||||||
^done,reason="watchpoint-trigger",wpt=@{number="2",exp="x"@},
|
^done,reason="watchpoint-trigger",wpt=@{number="2",exp="x"@},
|
||||||
value=@{old="-268439212",new="55"@},
|
value=@{old="-268439212",new="55"@},
|
||||||
frame=@{func="main",args=@{@},file="recursive2.c",line="5"@}
|
frame=@{func="main",args=[],file="recursive2.c",line="5"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@@ -953,14 +953,14 @@ for the watchpoint going out of scope.
|
|||||||
^running
|
^running
|
||||||
^done,reason="watchpoint-trigger",
|
^done,reason="watchpoint-trigger",
|
||||||
wpt=@{number="5",exp="C"@},value=@{old="-276895068",new="3"@},
|
wpt=@{number="5",exp="C"@},value=@{old="-276895068",new="3"@},
|
||||||
frame=@{func="callee4",args=@{@},
|
frame=@{func="callee4",args=[],
|
||||||
file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="13"@}
|
file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="13"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
-exec-continue
|
-exec-continue
|
||||||
^running
|
^running
|
||||||
^done,reason="watchpoint-scope",wpnum="5",
|
^done,reason="watchpoint-scope",wpnum="5",
|
||||||
frame=@{func="callee3",args=@{@{name="strarg",
|
frame=@{func="callee3",args=[@{name="strarg",
|
||||||
value="0x11940 \"A string argument.\""@}@},
|
value="0x11940 \"A string argument.\""@}],
|
||||||
file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="18"@}
|
file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="18"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@end smallexample
|
@end smallexample
|
||||||
@@ -986,7 +986,7 @@ enabled="y",addr="",what="C",times="0"@}@}
|
|||||||
^running
|
^running
|
||||||
^done,reason="watchpoint-trigger",wpt=@{number="2",exp="C"@},
|
^done,reason="watchpoint-trigger",wpt=@{number="2",exp="C"@},
|
||||||
value=@{old="-276895068",new="3"@},
|
value=@{old="-276895068",new="3"@},
|
||||||
frame=@{func="callee4",args=@{@},
|
frame=@{func="callee4",args=[],
|
||||||
file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="13"@}
|
file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="13"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
-break-list
|
-break-list
|
||||||
@@ -1000,8 +1000,8 @@ enabled="y",addr="",what="C",times="-5"@}@}
|
|||||||
-exec-continue
|
-exec-continue
|
||||||
^running
|
^running
|
||||||
^done,reason="watchpoint-scope",wpnum="2",
|
^done,reason="watchpoint-scope",wpnum="2",
|
||||||
frame=@{func="callee3",args=@{@{name="strarg",
|
frame=@{func="callee3",args=[@{name="strarg",
|
||||||
value="0x11940 \"A string argument.\""@}@},
|
value="0x11940 \"A string argument.\""@}],
|
||||||
file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="18"@}
|
file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="18"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
-break-list
|
-break-list
|
||||||
@@ -1231,7 +1231,7 @@ On a PPC MBX board:
|
|||||||
|
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
*stopped,reason="breakpoint-hit",bkptno="1",frame=@{func="main",
|
*stopped,reason="breakpoint-hit",bkptno="1",frame=@{func="main",
|
||||||
args=@{@},file="try.c",line="5"@}
|
args=[],file="try.c",line="5"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
-data-list-changed-registers
|
-data-list-changed-registers
|
||||||
^done,changed-registers=["0","1","2","4","5","6","7","8","9",
|
^done,changed-registers=["0","1","2","4","5","6","7","8","9",
|
||||||
@@ -1443,10 +1443,10 @@ word. Display each word in hex.
|
|||||||
9-data-read-memory -o -6 -- bytes+6 x 1 3 2
|
9-data-read-memory -o -6 -- bytes+6 x 1 3 2
|
||||||
9^done,addr="0x00001390",nr-bytes="6",total-bytes="6",
|
9^done,addr="0x00001390",nr-bytes="6",total-bytes="6",
|
||||||
next-row="0x00001396",prev-row="0x0000138e",next-page="0x00001396",
|
next-row="0x00001396",prev-row="0x0000138e",next-page="0x00001396",
|
||||||
prev-page="0x0000138a",memory=[
|
prev-page="0x0000138a",memory=@{
|
||||||
@{addr="0x00001390",data=["0x00","0x01"]@},
|
@{addr="0x00001390",data=@{"0x00","0x01"@}@},
|
||||||
@{addr="0x00001392",data=["0x02","0x03"]@},
|
@{addr="0x00001392",data=@{"0x02","0x03"@}@},
|
||||||
@{addr="0x00001394",data=["0x04","0x05"]@}]
|
@{addr="0x00001394",data=@{"0x04","0x05"@}@}@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@@ -1458,8 +1458,8 @@ display as a single word formatted in decimal.
|
|||||||
5-data-read-memory shorts+64 d 2 1 1
|
5-data-read-memory shorts+64 d 2 1 1
|
||||||
5^done,addr="0x00001510",nr-bytes="2",total-bytes="2",
|
5^done,addr="0x00001510",nr-bytes="2",total-bytes="2",
|
||||||
next-row="0x00001512",prev-row="0x0000150e",
|
next-row="0x00001512",prev-row="0x0000150e",
|
||||||
next-page="0x00001512",prev-page="0x0000150e",memory=[
|
next-page="0x00001512",prev-page="0x0000150e",memory=@{
|
||||||
@{addr="0x00001510",data=["128"]@}]
|
@{addr="0x00001510",data=@{"128"@}@}@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@@ -1472,15 +1472,15 @@ used as the non-printable character.
|
|||||||
4-data-read-memory bytes+16 x 1 8 4 x
|
4-data-read-memory bytes+16 x 1 8 4 x
|
||||||
4^done,addr="0x000013a0",nr-bytes="32",total-bytes="32",
|
4^done,addr="0x000013a0",nr-bytes="32",total-bytes="32",
|
||||||
next-row="0x000013c0",prev-row="0x0000139c",
|
next-row="0x000013c0",prev-row="0x0000139c",
|
||||||
next-page="0x000013c0",prev-page="0x00001380",memory=[
|
next-page="0x000013c0",prev-page="0x00001380",memory=@{
|
||||||
@{addr="0x000013a0",data=["0x10","0x11","0x12","0x13"],ascii="xxxx"@},
|
@{addr="0x000013a0",data=@{"0x10","0x11","0x12","0x13"@},ascii="xxxx"@},
|
||||||
@{addr="0x000013a4",data=["0x14","0x15","0x16","0x17"],ascii="xxxx"@},
|
@{addr="0x000013a4",data=@{"0x14","0x15","0x16","0x17"@},ascii="xxxx"@},
|
||||||
@{addr="0x000013a8",data=["0x18","0x19","0x1a","0x1b"],ascii="xxxx"@},
|
@{addr="0x000013a8",data=@{"0x18","0x19","0x1a","0x1b"@},ascii="xxxx"@},
|
||||||
@{addr="0x000013ac",data=["0x1c","0x1d","0x1e","0x1f"],ascii="xxxx"@},
|
@{addr="0x000013ac",data=@{"0x1c","0x1d","0x1e","0x1f"@},ascii="xxxx"@},
|
||||||
@{addr="0x000013b0",data=["0x20","0x21","0x22","0x23"],ascii=" !\"#"@},
|
@{addr="0x000013b0",data=@{"0x20","0x21","0x22","0x23"@},ascii=" !\"#"@},
|
||||||
@{addr="0x000013b4",data=["0x24","0x25","0x26","0x27"],ascii="$%&'"@},
|
@{addr="0x000013b4",data=@{"0x24","0x25","0x26","0x27"@},ascii="$%&'"@},
|
||||||
@{addr="0x000013b8",data=["0x28","0x29","0x2a","0x2b"],ascii="()*+"@},
|
@{addr="0x000013b8",data=@{"0x28","0x29","0x2a","0x2b"@},ascii="()*+"@},
|
||||||
@{addr="0x000013bc",data=["0x2c","0x2d","0x2e","0x2f"],ascii=",-./"@}]
|
@{addr="0x000013bc",data=@{"0x2c","0x2d","0x2e","0x2f"@},ascii=",-./"@}@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@@ -1791,7 +1791,7 @@ The corresponding @value{GDBN} corresponding is @samp{continue}.
|
|||||||
^running
|
^running
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@@Hello world
|
@@Hello world
|
||||||
*stopped,reason="breakpoint-hit",bkptno="2",frame=@{func="foo",args=@{@},
|
*stopped,reason="breakpoint-hit",bkptno="2",frame=@{func="foo",args=[],
|
||||||
file="hello.c",line="13"@}
|
file="hello.c",line="13"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@end smallexample
|
@end smallexample
|
||||||
@@ -1823,7 +1823,7 @@ Function returning @code{void}.
|
|||||||
^running
|
^running
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@@hello from foo
|
@@hello from foo
|
||||||
*stopped,reason="function-finished",frame=@{func="main",args=@{@},
|
*stopped,reason="function-finished",frame=@{func="main",args=[],
|
||||||
file="hello.c",line="7"@}
|
file="hello.c",line="7"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@end smallexample
|
@end smallexample
|
||||||
@@ -1837,7 +1837,7 @@ value itself.
|
|||||||
^running
|
^running
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
*stopped,reason="function-finished",frame=@{addr="0x000107b0",func="foo",
|
*stopped,reason="function-finished",frame=@{addr="0x000107b0",func="foo",
|
||||||
args=@{@{name="a",value="1"@},@{name="b",value="9"@}@},
|
args=[@{name="a",value="1"],@{name="b",value="9"@}@},
|
||||||
file="recursive2.c",line="14"@},
|
file="recursive2.c",line="14"@},
|
||||||
gdb-result-var="$1",return-value="0"
|
gdb-result-var="$1",return-value="0"
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@@ -1972,7 +1972,7 @@ file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="8"@}
|
|||||||
000^running
|
000^running
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
000*stopped,reason="breakpoint-hit",bkptno="1",
|
000*stopped,reason="breakpoint-hit",bkptno="1",
|
||||||
frame=@{func="callee4",args=@{@},
|
frame=@{func="callee4",args=[],
|
||||||
file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="8"@}
|
file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="8"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
205-break-delete
|
205-break-delete
|
||||||
@@ -1980,8 +1980,8 @@ file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="8"@}
|
|||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
111-exec-return
|
111-exec-return
|
||||||
111^done,frame=@{level="0 ",func="callee3",
|
111^done,frame=@{level="0 ",func="callee3",
|
||||||
args=@{@{name="strarg",
|
args=[@{name="strarg",
|
||||||
value="0x11940 \"A string argument.\""@}@},
|
value="0x11940 \"A string argument.\""@}],
|
||||||
file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="18"@}
|
file="../../../devo/gdb/testsuite/gdb.mi/basics.c",line="18"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@end smallexample
|
@end smallexample
|
||||||
@@ -2015,7 +2015,7 @@ The corresponding @value{GDBN} command is @samp{run}.
|
|||||||
^running
|
^running
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
*stopped,reason="breakpoint-hit",bkptno="1",
|
*stopped,reason="breakpoint-hit",bkptno="1",
|
||||||
frame=@{func="main",args=@{@},file="recursive2.c",line="4"@}
|
frame=@{func="main",args=[],file="recursive2.c",line="4"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@@ -2067,8 +2067,8 @@ Stepping into a function:
|
|||||||
^running
|
^running
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
*stopped,reason="end-stepping-range",
|
*stopped,reason="end-stepping-range",
|
||||||
frame=@{func="foo",args=@{@{name="a",value="10"@},
|
frame=@{func="foo",args=[@{name="a",value="10"@},
|
||||||
@{name="b",value="0"@}@},file="recursive2.c",line="11"@}
|
@{name="b",value="0"@}],file="recursive2.c",line="11"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@@ -2111,14 +2111,14 @@ The corresponding @value{GDBN} command is @samp{stepi}.
|
|||||||
|
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
*stopped,reason="end-stepping-range",
|
*stopped,reason="end-stepping-range",
|
||||||
frame=@{func="foo",args=@{@},file="try.c",line="10"@}
|
frame=@{func="foo",args=[],file="try.c",line="10"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
-exec-step-instruction
|
-exec-step-instruction
|
||||||
^running
|
^running
|
||||||
|
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
*stopped,reason="end-stepping-range",
|
*stopped,reason="end-stepping-range",
|
||||||
frame=@{addr="0x000100f4",func="foo",args=@{@},file="try.c",line="10"@}
|
frame=@{addr="0x000100f4",func="foo",args=[],file="try.c",line="10"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@@ -2149,7 +2149,7 @@ The corresponding @value{GDBN} command is @samp{until}.
|
|||||||
^running
|
^running
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
x = 55
|
x = 55
|
||||||
*stopped,reason="location-reached",frame=@{func="main",args=@{@},
|
*stopped,reason="location-reached",frame=@{func="main",args=[],
|
||||||
file="recursive2.c",line="6"@}
|
file="recursive2.c",line="6"@}
|
||||||
(@value{GDBP})
|
(@value{GDBP})
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|||||||
@@ -586,7 +586,7 @@ print_frame (struct frame_info *fi,
|
|||||||
args.func = func;
|
args.func = func;
|
||||||
args.stream = gdb_stdout;
|
args.stream = gdb_stdout;
|
||||||
#ifdef UI_OUT
|
#ifdef UI_OUT
|
||||||
args_list_chain = make_cleanup_ui_out_tuple_begin_end (uiout, "args");
|
args_list_chain = make_cleanup_ui_out_list_begin_end (uiout, "args");
|
||||||
catch_errors (print_args_stub, &args, "", RETURN_MASK_ALL);
|
catch_errors (print_args_stub, &args, "", RETURN_MASK_ALL);
|
||||||
/* FIXME: args must be a list. If one argument is a string it will
|
/* FIXME: args must be a list. If one argument is a string it will
|
||||||
have " that will not be properly escaped. */
|
have " that will not be properly escaped. */
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2001-06-25 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
|
* lib/mi-support.exp: Update args=... part of stop-reason
|
||||||
|
patterns. Accept either a list or a tuple.
|
||||||
|
|
||||||
2001-06-23 Andrew Cagney <ac131313@redhat.com>
|
2001-06-23 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
* lib/mi-support.exp: Remove local emacs variable defining
|
* lib/mi-support.exp: Remove local emacs variable defining
|
||||||
|
|||||||
@@ -1,3 +1,22 @@
|
|||||||
|
2001-06-25 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
|
* mi-console.exp: Update args=... part of stop-reason
|
||||||
|
patterns. Output changed to a list of arguments.
|
||||||
|
* mi-disassemble.exp: Ditto.
|
||||||
|
* mi-simplerun.exp: Ditto.
|
||||||
|
* mi-return.exp: Ditto.
|
||||||
|
* mi-read-memory.exp: Ditto.
|
||||||
|
* mi-eval.exp: Ditto.
|
||||||
|
* mi-watch.exp: Ditto.
|
||||||
|
* mi-var-display.exp: Ditto.
|
||||||
|
* mi-var-cmd.exp: Ditto.
|
||||||
|
* mi-var-child.exp: Ditto.
|
||||||
|
* mi-var-block.exp: Ditto.
|
||||||
|
* mi-until.exp: Ditto.
|
||||||
|
* mi-stepi.exp: Ditto.
|
||||||
|
* mi-stack.exp: Ditto.
|
||||||
|
* mi-regs.exp: Ditto.
|
||||||
|
|
||||||
2001-06-25 Andrew Cagney <ac131313@redhat.com>
|
2001-06-25 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
* mi-read-memory.exp: Update patterns matching data-read-memory.
|
* mi-read-memory.exp: Update patterns matching data-read-memory.
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ mi_gdb_test "200-break-insert main" \
|
|||||||
"break-insert operation"
|
"break-insert operation"
|
||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*mi-console.c\",line=\"13\"\}\r\n$mi_gdb_prompt$" {
|
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*mi-console.c\",line=\"13\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "run to main"
|
pass "run to main"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ proc test_running_the_program {} {
|
|||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
# The running part has been checked already by mi_run_cmd
|
# The running part has been checked already by mi_run_cmd
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
|
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "run to main"
|
pass "run to main"
|
||||||
}
|
}
|
||||||
-re ".*$mi_gdb_prompt$" {fail "run to main (2)"}
|
-re ".*$mi_gdb_prompt$" {fail "run to main (2)"}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ proc test_running_the_program {} {
|
|||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
# The running part has been checked already by mi_run_cmd
|
# The running part has been checked already by mi_run_cmd
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\{\},file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" \
|
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\\\[\\\],file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" \
|
||||||
{ pass "run to callee4" }
|
{ pass "run to callee4" }
|
||||||
-re ".*$mi_gdb_prompt$" {fail "run to callee4 (2)"}
|
-re ".*$mi_gdb_prompt$" {fail "run to callee4 (2)"}
|
||||||
timeout {fail "run to callee4 (timeout 2)"}
|
timeout {fail "run to callee4 (timeout 2)"}
|
||||||
@@ -74,7 +74,7 @@ proc test_running_the_program {} {
|
|||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "101\\^running\r\n$mi_gdb_prompt" {
|
-re "101\\^running\r\n$mi_gdb_prompt" {
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\[\r\n\]*101\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\{\},file=\".*basics.c\",line=\"9\"\}\r\n$mi_gdb_prompt$" \
|
-re "\[\r\n\]*101\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\\\[\\\],file=\".*basics.c\",line=\"9\"\}\r\n$mi_gdb_prompt$" \
|
||||||
{ pass "next in callee4" }
|
{ pass "next in callee4" }
|
||||||
-re ".*$mi_gdb_prompt$" {fail "next in callee4 (2)"}
|
-re ".*$mi_gdb_prompt$" {fail "next in callee4 (2)"}
|
||||||
timeout {fail "next in callee4 (timeout 2)"}
|
timeout {fail "next in callee4 (timeout 2)"}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ send_gdb "101-exec-next\n"
|
|||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "101\\^running\r\n$mi_gdb_prompt" {
|
-re "101\\^running\r\n$mi_gdb_prompt" {
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\[\r\n\]*101\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*mi-read-memory.c\",line=\"20\"\}.*$mi_gdb_prompt$" \
|
-re "\[\r\n\]*101\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*mi-read-memory.c\",line=\"20\"\}.*$mi_gdb_prompt$" \
|
||||||
{ pass "do initialization" }
|
{ pass "do initialization" }
|
||||||
-re ".*$mi_gdb_prompt$" {fail "do initialization (2)"}
|
-re ".*$mi_gdb_prompt$" {fail "do initialization (2)"}
|
||||||
timeout {fail "do initialization (timeout 2)"}
|
timeout {fail "do initialization (timeout 2)"}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ proc test_running_the_program {} {
|
|||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
# The running part has been checked already by mi_run_cmd
|
# The running part has been checked already by mi_run_cmd
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
|
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "run to main"
|
pass "run to main"
|
||||||
}
|
}
|
||||||
-re ".*$mi_gdb_prompt$" {fail "run to main (2)"}
|
-re ".*$mi_gdb_prompt$" {fail "run to main (2)"}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ proc test_running_to_callee4 {} {
|
|||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
|
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\{\},file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" {
|
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\\\[\\\],file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "run to callee4"
|
pass "run to callee4"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -77,7 +77,7 @@ proc test_return_simple {} {
|
|||||||
|
|
||||||
send_gdb "111-exec-return\n"
|
send_gdb "111-exec-return\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "111\\^done,frame=\{level=\"0 \",addr=\"$hex\",func=\"callee3\",args=\{.*\},file=\".*basics.c\",line=\"18\"\}\r\n$mi_gdb_prompt$" {pass "return from callee4 now"}
|
-re "111\\^done,frame=\{level=\"0 \",addr=\"$hex\",func=\"callee3\",args=\\\[.*\\\],file=\".*basics.c\",line=\"18\"\}\r\n$mi_gdb_prompt$" {pass "return from callee4 now"}
|
||||||
-re ".*\r\n$mi_gdb_prompt$" { fail "return from callee4 now" }
|
-re ".*\r\n$mi_gdb_prompt$" { fail "return from callee4 now" }
|
||||||
timeout { fail "return from callee4 now (timeout)"
|
timeout { fail "return from callee4 now (timeout)"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ proc test_running_the_program {} {
|
|||||||
# The following is equivalent to a send_gdb "000-exec-run\n"
|
# The following is equivalent to a send_gdb "000-exec-run\n"
|
||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
|
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "run to main"
|
pass "run to main"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -130,7 +130,7 @@ proc test_controlled_execution {} {
|
|||||||
# two prompts involved and this can lead to a race condition.
|
# two prompts involved and this can lead to a race condition.
|
||||||
send_gdb "220-exec-next\n"
|
send_gdb "220-exec-next\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "220\\^running\r\n${mi_gdb_prompt}220\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*basics.c\",line=\"33\"\}\r\n$mi_gdb_prompt$" {
|
-re "220\\^running\r\n${mi_gdb_prompt}220\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*basics.c\",line=\"33\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "next at main"
|
pass "next at main"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -143,7 +143,7 @@ proc test_controlled_execution {} {
|
|||||||
# NOTE: The ``\\\\\"'' is for \".
|
# NOTE: The ``\\\\\"'' is for \".
|
||||||
send_gdb "221-exec-step\n"
|
send_gdb "221-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "221\\^running\r\n${mi_gdb_prompt}221\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee1\",args=\{\{name=\"intarg\",value=\"2\"\},\{name=\"strarg\",value=\"$hex \\\\\"A string argument\.\\\\\"\"\},\{name=\"fltarg\",value=\"3.5\"\}\},file=\".*basics.c\",line=\"27\"\}\r\n$mi_gdb_prompt$" {
|
-re "221\\^running\r\n${mi_gdb_prompt}221\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee1\",args=\\\[\{name=\"intarg\",value=\"2\"\},\{name=\"strarg\",value=\"$hex \\\\\"A string argument\.\\\\\"\"\},\{name=\"fltarg\",value=\"3.5\"\}\\\],file=\".*basics.c\",line=\"27\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at main"
|
pass "step at main"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -155,7 +155,7 @@ proc test_controlled_execution {} {
|
|||||||
# we should look for the right thing here.
|
# we should look for the right thing here.
|
||||||
send_gdb "222-exec-step 3\n"
|
send_gdb "222-exec-step 3\n"
|
||||||
gdb_expect 30 {
|
gdb_expect 30 {
|
||||||
-re "222\\^running\r\n${mi_gdb_prompt}222\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\{\},file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" {
|
-re "222\\^running\r\n${mi_gdb_prompt}222\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\\\[\\\],file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step to callee4"
|
pass "step to callee4"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -168,7 +168,7 @@ proc test_controlled_execution {} {
|
|||||||
# NOTE: The ``.'' is part of ``gdb-result-var="$1"''
|
# NOTE: The ``.'' is part of ``gdb-result-var="$1"''
|
||||||
send_gdb "223-exec-finish\n"
|
send_gdb "223-exec-finish\n"
|
||||||
gdb_expect 30 {
|
gdb_expect 30 {
|
||||||
-re "223\\^running\r\n${mi_gdb_prompt}223\\*stopped,reason=\"function-finished\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee3\",args=\{.*\},file=\".*basics.c\",line=\"18\"\},gdb-result-var=\".1\",return-value=\"0\"\r\n$mi_gdb_prompt$" {
|
-re "223\\^running\r\n${mi_gdb_prompt}223\\*stopped,reason=\"function-finished\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee3\",args=\\\[.*\\\],file=\".*basics.c\",line=\"18\"\},gdb-result-var=\".1\",return-value=\"0\"\r\n$mi_gdb_prompt$" {
|
||||||
pass "exec-finish"
|
pass "exec-finish"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ mi_gdb_test "200-break-insert callee4" \
|
|||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
# The running part has been checked already by mi_run_cmd
|
# The running part has been checked already by mi_run_cmd
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\{\},file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" {
|
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\\\[\\\],file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "run to callee4"
|
pass "run to callee4"
|
||||||
}
|
}
|
||||||
-re ".*$mi_gdb_prompt$" {fail "run to callee4 (2)"}
|
-re ".*$mi_gdb_prompt$" {fail "run to callee4 (2)"}
|
||||||
@@ -174,7 +174,7 @@ proc test_stack_locals_listing {} {
|
|||||||
# step until A, B, C, have some reasonable values.
|
# step until A, B, C, have some reasonable values.
|
||||||
send_gdb "-exec-next 3\n"
|
send_gdb "-exec-next 3\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\{\},file=\".*basics.c\",line=\"13\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\\\[\\\],file=\".*basics.c\",line=\"13\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "next's in callee4"
|
pass "next's in callee4"
|
||||||
}
|
}
|
||||||
timeout { fail "next in callee4 (timeout)" }
|
timeout { fail "next in callee4 (timeout)" }
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ proc test_running_to_main {} {
|
|||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
|
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
|
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "run to main"
|
pass "run to main"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -72,7 +72,7 @@ proc test_stepi_nexti {} {
|
|||||||
|
|
||||||
send_gdb "111-exec-step-instruction\n"
|
send_gdb "111-exec-step-instruction\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "111\\^running\r\n${mi_gdb_prompt}111\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*basics.c\",line=\"3.\"\}\r\n$mi_gdb_prompt$" {
|
-re "111\\^running\r\n${mi_gdb_prompt}111\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*basics.c\",line=\"3.\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step-instruction at main"
|
pass "step-instruction at main"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -81,7 +81,7 @@ proc test_stepi_nexti {} {
|
|||||||
}
|
}
|
||||||
send_gdb "222-exec-next-instruction\n"
|
send_gdb "222-exec-next-instruction\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "222\\^running\r\n${mi_gdb_prompt}222\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*basics.c\",line=\"3.\"\}\r\n$mi_gdb_prompt$" {
|
-re "222\\^running\r\n${mi_gdb_prompt}222\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*basics.c\",line=\"3.\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "next-instruction at main"
|
pass "next-instruction at main"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -90,7 +90,7 @@ proc test_stepi_nexti {} {
|
|||||||
}
|
}
|
||||||
send_gdb "333-exec-next-instruction\n"
|
send_gdb "333-exec-next-instruction\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "333\\^running\r\n${mi_gdb_prompt}333\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*basics.c\",line=\"3.\"\}\r\n$mi_gdb_prompt$" {
|
-re "333\\^running\r\n${mi_gdb_prompt}333\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*basics.c\",line=\"3.\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "next-instruction at main"
|
pass "next-instruction at main"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ proc test_running_to_foo {} {
|
|||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
|
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\{\},file=\".*until.c\",line=\"10\"\}\r\n$mi_gdb_prompt$" {
|
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",line=\"10\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "run to main"
|
pass "run to main"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -75,7 +75,7 @@ proc test_until {} {
|
|||||||
|
|
||||||
send_gdb "111-exec-until\n"
|
send_gdb "111-exec-until\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "111\\^running\r\n${mi_gdb_prompt}111\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\{\},file=\".*until.c\",line=\"12\"\}\r\n$mi_gdb_prompt$" {
|
-re "111\\^running\r\n${mi_gdb_prompt}111\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",line=\"12\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "until after while loop"
|
pass "until after while loop"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -85,7 +85,7 @@ proc test_until {} {
|
|||||||
|
|
||||||
send_gdb "222-exec-until 15\n"
|
send_gdb "222-exec-until 15\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "222\\^running\r\n${mi_gdb_prompt}222\\*stopped,reason=\"location-reached\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\{\},file=\".*until.c\",line=\"15\"\}\r\n$mi_gdb_prompt$" {
|
-re "222\\^running\r\n${mi_gdb_prompt}222\\*stopped,reason=\"location-reached\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",line=\"15\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "until line number"
|
pass "until line number"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -95,7 +95,7 @@ proc test_until {} {
|
|||||||
|
|
||||||
send_gdb "333-exec-until until.c:17\n"
|
send_gdb "333-exec-until until.c:17\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "333\\^running\r\n${mi_gdb_prompt}333\\*stopped,reason=\"location-reached\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\{\},file=\".*until.c\",line=\"17\"\}\r\n$mi_gdb_prompt$" {
|
-re "333\\^running\r\n${mi_gdb_prompt}333\\*stopped,reason=\"location-reached\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",line=\"17\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "until line number:file"
|
pass "until line number:file"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -107,7 +107,7 @@ proc test_until {} {
|
|||||||
|
|
||||||
send_gdb "444-exec-until until.c:25\n"
|
send_gdb "444-exec-until until.c:25\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "444\\^running\r\n${mi_gdb_prompt}444\\*stopped,reason=\"location-reached\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*until.c\",line=\"24\"\}\r\n$mi_gdb_prompt$" {
|
-re "444\\^running\r\n${mi_gdb_prompt}444\\*stopped,reason=\"location-reached\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*until.c\",line=\"24\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "until after current function"
|
pass "until after current function"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ mi_gdb_test "200-break-insert do_block_tests" \
|
|||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
# The running part has been checked already by mi_run_cmd
|
# The running part has been checked already by mi_run_cmd
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\{\},file=\".*var-cmd.c\",line=\"154\"\}\r\n$mi_gdb_prompt$" {
|
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"154\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "run to do_block_tests"
|
pass "run to do_block_tests"
|
||||||
}
|
}
|
||||||
-re ".*$mi_gdb_prompt$" {fail "run to do_block_tests (2)"}
|
-re ".*$mi_gdb_prompt$" {fail "run to do_block_tests (2)"}
|
||||||
@@ -69,7 +69,7 @@ mi_gdb_test "-var-create foo * foo" \
|
|||||||
# step to "foo = 123;"
|
# step to "foo = 123;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\{\},file=\".*var-cmd.c\",line=\"158\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"158\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_block_tests"
|
pass "step at do_block_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -93,7 +93,7 @@ mi_gdb_test "-var-create foo * foo" \
|
|||||||
# step to "foo2 = 123;"
|
# step to "foo2 = 123;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\{\},file=\".*var-cmd.c\",line=\"161\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"161\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_block_tests"
|
pass "step at do_block_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -110,7 +110,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# step to "foo = 321;"
|
# step to "foo = 321;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\{\},file=\".*var-cmd.c\",line=\"164\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"164\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_block_tests"
|
pass "step at do_block_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -127,7 +127,7 @@ mi_gdb_test "-var-create inner_foo * foo" \
|
|||||||
# step to "foo2 = 0;"
|
# step to "foo2 = 0;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\{\},file=\".*var-cmd.c\",line=\"166\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"166\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_block_tests"
|
pass "step at do_block_tests"
|
||||||
}
|
}
|
||||||
timeout { fail "step at do_block_tests (timeout)" }
|
timeout { fail "step at do_block_tests (timeout)" }
|
||||||
@@ -165,7 +165,7 @@ mi_gdb_test "-var-delete inner_foo" \
|
|||||||
# step to "foo = 0;"
|
# step to "foo = 0;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\{\},file=\".*var-cmd.c\",line=\"168\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"168\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_block_tests"
|
pass "step at do_block_tests"
|
||||||
}
|
}
|
||||||
timeout { fail "step at do_block_tests (timeout)" }
|
timeout { fail "step at do_block_tests (timeout)" }
|
||||||
@@ -182,7 +182,7 @@ clear_xfail *-*-*
|
|||||||
# step to "cb = 21;"
|
# step to "cb = 21;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\{\},file=\".*var-cmd.c\",line=\"171\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_block_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"171\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_block_tests"
|
pass "step at do_block_tests"
|
||||||
}
|
}
|
||||||
timeout { fail "step at do_block_tests (timeout)" }
|
timeout { fail "step at do_block_tests (timeout)" }
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ mi_gdb_test "200-break-insert do_children_tests" \
|
|||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
# The running part has been checked already by mi_run_cmd
|
# The running part has been checked already by mi_run_cmd
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"190\"\}\r\n$mi_gdb_prompt$" {
|
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"190\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "run to do_children_tests"
|
pass "run to do_children_tests"
|
||||||
}
|
}
|
||||||
-re ".*$mi_gdb_prompt$" {fail "run to do_children_tests (2)"}
|
-re ".*$mi_gdb_prompt$" {fail "run to do_children_tests (2)"}
|
||||||
@@ -567,7 +567,7 @@ mi_gdb_test "-var-info-num-children struct_declarations.int_ptr_ptr.*int_ptr_ptr
|
|||||||
# Step to "struct_declarations.integer = 123;"
|
# Step to "struct_declarations.integer = 123;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"192\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"192\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -774,7 +774,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "struct_declarations.integer = 123;"
|
# Step over "struct_declarations.integer = 123;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"193\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"193\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -795,7 +795,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
|
|
||||||
send_gdb "-exec-step 3\n"
|
send_gdb "-exec-step 3\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"196\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"196\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -812,7 +812,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "struct_declarations.int_ptr_ptr = &foo;"
|
# Step over "struct_declarations.int_ptr_ptr = &foo;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"197\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"197\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -829,7 +829,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "weird->long_array[0] = 1234;"
|
# Step over "weird->long_array[0] = 1234;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"198\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"198\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -846,7 +846,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "struct_declarations.long_array[1] = 2345;"
|
# Step over "struct_declarations.long_array[1] = 2345;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"199\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"199\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -863,7 +863,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "weird->long_array[2] = 3456;"
|
# Step over "weird->long_array[2] = 3456;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"200\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"200\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -887,7 +887,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# struct_declarations.long_array[9] = 1234;
|
# struct_declarations.long_array[9] = 1234;
|
||||||
send_gdb "-exec-step 7\n"
|
send_gdb "-exec-step 7\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"208\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"208\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -905,7 +905,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "weird->func_ptr = nothing;"
|
# Step over "weird->func_ptr = nothing;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"211\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"211\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -933,7 +933,7 @@ mi_gdb_test "-var-delete weird->int_ptr_ptr" \
|
|||||||
# psnp = &snp0;
|
# psnp = &snp0;
|
||||||
send_gdb "-exec-step 43\n"
|
send_gdb "-exec-step 43\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"254\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"254\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -1211,7 +1211,7 @@ mi_gdb_test "-var-list-children psnp->ptrs.0.next.next.ptrs" \
|
|||||||
# Step over "snp0.char_ptr = &b3;"
|
# Step over "snp0.char_ptr = &b3;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"255\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"255\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -1228,7 +1228,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "snp1.char_ptr = &c3;"
|
# Step over "snp1.char_ptr = &c3;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"256\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"256\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -1247,7 +1247,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "snp2.char_ptr = &a3;"
|
# Step over "snp2.char_ptr = &a3;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"257\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"257\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -1266,7 +1266,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "snp0.long_ptr = &y3;"
|
# Step over "snp0.long_ptr = &y3;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"258\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"258\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -1284,7 +1284,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "snp1.long_ptr = &x3;"
|
# Step over "snp1.long_ptr = &x3;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"259\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"259\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -1309,7 +1309,7 @@ clear_xfail *-*-*
|
|||||||
# Step over "snp2.long_ptr = &z3;"
|
# Step over "snp2.long_ptr = &z3;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"260\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"260\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_children_tests"
|
pass "step at do_children_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ mi_gdb_test "200-break-insert do_locals_tests" \
|
|||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
# The running part has been checked already by mi_run_cmd
|
# The running part has been checked already by mi_run_cmd
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\{\},file=\".*var-cmd.c\",line=\"106\"\}\r\n$mi_gdb_prompt$" {
|
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"106\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "run to do_locals_tests"
|
pass "run to do_locals_tests"
|
||||||
}
|
}
|
||||||
-re ".*$mi_gdb_prompt$" {fail "run todo_locals_tests (2)"}
|
-re ".*$mi_gdb_prompt$" {fail "run todo_locals_tests (2)"}
|
||||||
@@ -182,7 +182,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "linteger = 1234;"
|
# Step over "linteger = 1234;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\{\},file=\".*var-cmd.c\",line=\"107\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"107\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_locals_tests"
|
pass "step at do_locals_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -199,7 +199,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "lpinteger = &linteger;"
|
# Step over "lpinteger = &linteger;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\{\},file=\".*var-cmd.c\",line=\"108\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"108\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_locals_tests"
|
pass "step at do_locals_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -216,7 +216,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "lcharacter = 'a';"
|
# Step over "lcharacter = 'a';"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\{\},file=\".*var-cmd.c\",line=\"109\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"109\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_locals_tests"
|
pass "step at do_locals_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -233,7 +233,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
# Step over "lpcharacter = &lcharacter;"
|
# Step over "lpcharacter = &lcharacter;"
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\{\},file=\".*var-cmd.c\",line=\"110\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"110\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_locals_tests"
|
pass "step at do_locals_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -261,7 +261,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
|
|
||||||
send_gdb "-exec-step 9\n"
|
send_gdb "-exec-step 9\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\{\},file=\".*var-cmd.c\",line=\"119\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"119\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_locals_tests"
|
pass "step at do_locals_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -284,7 +284,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
|
|
||||||
send_gdb "-exec-step 4\n"
|
send_gdb "-exec-step 4\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\{\},file=\".*var-cmd.c\",line=\"125\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"125\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_locals_tests"
|
pass "step at do_locals_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -310,7 +310,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
|
|
||||||
send_gdb "-exec-step 8\n"
|
send_gdb "-exec-step 8\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\{\},file=\".*var-cmd.c\",line=\"133\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"133\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at do_locals_tests"
|
pass "step at do_locals_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -434,7 +434,7 @@ mi_gdb_test "-break-insert subroutine1" \
|
|||||||
"break-insert subroutine1"
|
"break-insert subroutine1"
|
||||||
send_gdb "-exec-continue\n"
|
send_gdb "-exec-continue\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"breakpoint-hit\",bkptno=\"2\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"subroutine1\",args=\{\{name=\"i\",value=\"4321\"\},\{name=\"l\",value=\"$hex\"\}\},file=\".*var-cmd.c\",line=\"146\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"breakpoint-hit\",bkptno=\"2\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"subroutine1\",args=\\\[\{name=\"i\",value=\"4321\"\},\{name=\"l\",value=\"$hex\"\}\\\],file=\".*var-cmd.c\",line=\"146\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "continue to subroutine1"
|
pass "continue to subroutine1"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -460,7 +460,7 @@ mi_gdb_test "-var-create linteger * linteger" \
|
|||||||
|
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"subroutine1\",args=\{\{name=\"i\",value=\".*\"\},\{name=\"l\",value=\".*\"\}\},file=\".*var-cmd.c\",line=\"147\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"subroutine1\",args=\\\[\{name=\"i\",value=\".*\"\},\{name=\"l\",value=\".*\"\}\\\],file=\".*var-cmd.c\",line=\"147\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at subroutine1"
|
pass "step at subroutine1"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -483,7 +483,7 @@ clear_xfail *-*-*
|
|||||||
|
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"subroutine1\",args=\{\{name=\"i\",value=\".*\"\},\{name=\"l\",value=\".*\"\}\},file=\".*var-cmd.c\",line=\"148\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"subroutine1\",args=\\\[\{name=\"i\",value=\".*\"\},\{name=\"l\",value=\".*\"\}\\\],file=\".*var-cmd.c\",line=\"148\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at subroutine1"
|
pass "step at subroutine1"
|
||||||
}
|
}
|
||||||
timeout { fail "step at subroutine1 (timeout)" }
|
timeout { fail "step at subroutine1 (timeout)" }
|
||||||
@@ -497,7 +497,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
|
|
||||||
send_gdb "-exec-step\n"
|
send_gdb "-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"subroutine1\",args=\{\{name=\"i\",value=\".*\"\},\{name=\"l\",value=\".*\"\}\},file=\".*var-cmd.c\",line=\"149\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"subroutine1\",args=\\\[\{name=\"i\",value=\".*\"\},\{name=\"l\",value=\".*\"\}\\\],file=\".*var-cmd.c\",line=\"149\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "step at subroutine1"
|
pass "step at subroutine1"
|
||||||
}
|
}
|
||||||
timeout { fail "step at subroutine1 (timeout)" }
|
timeout { fail "step at subroutine1 (timeout)" }
|
||||||
@@ -511,7 +511,7 @@ mi_gdb_test "-var-update *" \
|
|||||||
|
|
||||||
send_gdb "-exec-next\n"
|
send_gdb "-exec-next\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\{\},file=\".*var-cmd.c\",line=\"136\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"end-stepping-range\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_locals_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"136\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "next out of subroutine1"
|
pass "next out of subroutine1"
|
||||||
}
|
}
|
||||||
timeout { fail "next out of subroutine1 (timeout)" }
|
timeout { fail "next out of subroutine1 (timeout)" }
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ mi_gdb_test "200-break-insert 260" \
|
|||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
# The running part has been checked already by mi_run_cmd
|
# The running part has been checked already by mi_run_cmd
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\{\},file=\".*var-cmd.c\",line=\"260\"\}\r\n$mi_gdb_prompt$" {
|
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"260\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "run to do_children_tests"
|
pass "run to do_children_tests"
|
||||||
}
|
}
|
||||||
-re ".*$mi_gdb_prompt$" {fail "run to do_children_tests (2)"}
|
-re ".*$mi_gdb_prompt$" {fail "run to do_children_tests (2)"}
|
||||||
@@ -330,7 +330,7 @@ mi_gdb_test "200-break-insert do_special_tests" \
|
|||||||
|
|
||||||
send_gdb "-exec-continue\n"
|
send_gdb "-exec-continue\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"breakpoint-hit\",bkptno=\"2\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_special_tests\",args=\{\},file=\".*var-cmd.c\",line=\"282\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"breakpoint-hit\",bkptno=\"2\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"do_special_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"282\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "continue to do_special_tests"
|
pass "continue to do_special_tests"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@@ -588,7 +588,7 @@ mi_gdb_test "200-break-insert incr_a" \
|
|||||||
"break-insert operation"
|
"break-insert operation"
|
||||||
send_gdb "-exec-continue\n"
|
send_gdb "-exec-continue\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"breakpoint-hit\",bkptno=\"3\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"incr_a\",args=\{\{name=\"a\",value=\"2\.*\"\}\},file=\".*var-cmd.c\",line=\"85\"\}\r\n$mi_gdb_prompt$" {
|
-re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"breakpoint-hit\",bkptno=\"3\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"incr_a\",args=\\\[\{name=\"a\",value=\"2\.*\"\}\\\],file=\".*var-cmd.c\",line=\"85\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "continue to incr_a"
|
pass "continue to incr_a"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ proc test_running_the_program {} {
|
|||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
# The running part has been checked already by mi_run_cmd
|
# The running part has been checked already by mi_run_cmd
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\{\},file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" \
|
-re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\\\[\\\],file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" \
|
||||||
{ pass "run to callee4" }
|
{ pass "run to callee4" }
|
||||||
-re ".*$mi_gdb_prompt$" {fail "run to callee4 (2)"}
|
-re ".*$mi_gdb_prompt$" {fail "run to callee4 (2)"}
|
||||||
timeout {fail "run to callee4 (timeout 2)"}
|
timeout {fail "run to callee4 (timeout 2)"}
|
||||||
@@ -154,7 +154,7 @@ proc test_watchpoint_triggering {} {
|
|||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "222\\^running\r\n$mi_gdb_prompt" {
|
-re "222\\^running\r\n$mi_gdb_prompt" {
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "222\\*stopped,reason=\"watchpoint-trigger\",wpt=\{number=\"2\",exp=\"C\"\},value=\{old=\".*\",new=\"3\"\},thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\{\},file=\".*basics.c\",line=\"13\"\}\r\n$mi_gdb_prompt$" {
|
-re "222\\*stopped,reason=\"watchpoint-trigger\",wpt=\{number=\"2\",exp=\"C\"\},value=\{old=\".*\",new=\"3\"\},thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\\\[\\\],file=\".*basics.c\",line=\"13\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "watchpoint trigger"
|
pass "watchpoint trigger"
|
||||||
}
|
}
|
||||||
-re ".*$mi_gdb_prompt$" {fail "watchpoint trigger (2)"}
|
-re ".*$mi_gdb_prompt$" {fail "watchpoint trigger (2)"}
|
||||||
@@ -169,7 +169,7 @@ proc test_watchpoint_triggering {} {
|
|||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "223\\^running\r\n$mi_gdb_prompt" {
|
-re "223\\^running\r\n$mi_gdb_prompt" {
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\[\r\n\]*223\\*stopped,reason=\"watchpoint-scope\",wpnum=\"2\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee3\",args=\{.*\},file=\".*basics.c\",line=\"18\"\}\r\n$mi_gdb_prompt$" {
|
-re "\[\r\n\]*223\\*stopped,reason=\"watchpoint-scope\",wpnum=\"2\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee3\",args=\\\[.*\\\],file=\".*basics.c\",line=\"18\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "wp out of scope"
|
pass "wp out of scope"
|
||||||
}
|
}
|
||||||
-re ".*$mi_gdb_prompt$" {fail "wp out of scope (2)"}
|
-re ".*$mi_gdb_prompt$" {fail "wp out of scope (2)"}
|
||||||
|
|||||||
@@ -632,7 +632,7 @@ proc mi_run_to_main { } {
|
|||||||
|
|
||||||
mi_run_cmd
|
mi_run_cmd
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"$decimal\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*\",line=\"\[0-9\]*\"\}\r\n$mi_gdb_prompt$" {
|
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"$decimal\",frame=\{addr=\"$hex\",func=\"main\",args=\(\\\[\\\]\|\{\}\),file=\".*\",line=\"\[0-9\]*\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "$test"
|
pass "$test"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@@ -654,7 +654,7 @@ proc mi_next { test } {
|
|||||||
global mi_gdb_prompt
|
global mi_gdb_prompt
|
||||||
send_gdb "220-exec-next\n"
|
send_gdb "220-exec-next\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "220\\^running\r\n${mi_gdb_prompt}220\\*stopped,reason=\"end-stepping-range\",thread-id=\"$decimal\",frame=\{addr=\"$hex\",func=\".*\",args=\{.*\},,file=\".*\",line=\"\[0-9\]*\"\}\r\n$mi_gdb_prompt$" {
|
-re "220\\^running\r\n${mi_gdb_prompt}220\\*stopped,reason=\"end-stepping-range\",thread-id=\"$decimal\",frame=\{addr=\"$hex\",func=\".*\",args=\[\\\[\{].*[\\\]\}\],,file=\".*\",line=\"\[0-9\]*\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "$test"
|
pass "$test"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@@ -676,7 +676,7 @@ proc mi_step { test } {
|
|||||||
global mi_gdb_prompt
|
global mi_gdb_prompt
|
||||||
send_gdb "220-exec-step\n"
|
send_gdb "220-exec-step\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "220\\^running\r\n${mi_gdb_prompt}220\\*stopped,reason=\"end-stepping-range\",thread-id=\"$decimal\",frame=\{addr=\"$hex\",func=\".*\",args=\{.*\},,file=\".*\",line=\"\[0-9\]*\"\}\r\n$mi_gdb_prompt$" {
|
-re "220\\^running\r\n${mi_gdb_prompt}220\\*stopped,reason=\"end-stepping-range\",thread-id=\"$decimal\",frame=\{addr=\"$hex\",func=\".*\",args=\[\\\[\{\].*\[\\\]\}\],,file=\".*\",line=\"\[0-9\]*\"\}\r\n$mi_gdb_prompt$" {
|
||||||
pass "$test"
|
pass "$test"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user