mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
* gdb.base/foll-fork.exp: Adjust the expected output to match
the new description for fork/vfork catchpoints in the "info breakpoints" output.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2008-10-16 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
|
* gdb.base/foll-fork.exp: Adjust the expected output to match
|
||||||
|
the new description for fork/vfork catchpoints in the "info
|
||||||
|
breakpoints" output.
|
||||||
|
|
||||||
2008-10-16 Paul Pluzhnikov <ppluzhnikov@google.com>
|
2008-10-16 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||||
|
|
||||||
* Makefile.in: Add gdb.python to ALL_SUBDIRS.
|
* Makefile.in: Add gdb.python to ALL_SUBDIRS.
|
||||||
|
@ -158,14 +158,11 @@ proc catch_fork_child_follow {} {
|
|||||||
# Verify that the catchpoint is mentioned in an "info breakpoints",
|
# Verify that the catchpoint is mentioned in an "info breakpoints",
|
||||||
# and further that the catchpoint mentions no process id.
|
# and further that the catchpoint mentions no process id.
|
||||||
#
|
#
|
||||||
send_gdb "info breakpoints\n"
|
set test_name "info shows catchpoint without pid"
|
||||||
gdb_expect {
|
gdb_test_multiple "info breakpoints" "$test_name" {
|
||||||
-re ".*catch fork.*keep y.*$gdb_prompt $"\
|
-re ".*catchpoint.*keep y.*fork\[\r\n\]+$gdb_prompt $" {
|
||||||
{pass "info shows catchpoint without pid"}
|
pass "$test_name"
|
||||||
-re ".*catch fork.*process .*$gdb_prompt $"\
|
}
|
||||||
{fail "info shows catchpoint without pid"}
|
|
||||||
-re "$gdb_prompt $" {fail "info shows catchpoint without pid"}
|
|
||||||
timeout {fail "(timeout) info shows catchpoint without pid"}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
send_gdb "continue\n"
|
send_gdb "continue\n"
|
||||||
@ -179,12 +176,11 @@ proc catch_fork_child_follow {} {
|
|||||||
# Verify that the catchpoint is mentioned in an "info breakpoints",
|
# Verify that the catchpoint is mentioned in an "info breakpoints",
|
||||||
# and further that the catchpoint managed to capture a process id.
|
# and further that the catchpoint managed to capture a process id.
|
||||||
#
|
#
|
||||||
send_gdb "info breakpoints\n"
|
set test_name "info shows catchpoint without pid"
|
||||||
gdb_expect {
|
gdb_test_multiple "info breakpoints" "$test_name" {
|
||||||
-re ".*catch fork .*process \[0-9\]+.*$gdb_prompt $"\
|
-re ".*catchpoint.*keep y.*fork, process.*$gdb_prompt $" {
|
||||||
{pass "info shows catchpoint pid"}
|
pass "$test_name"
|
||||||
-re "$gdb_prompt $" {fail "info shows catchpoint pid"}
|
}
|
||||||
timeout {fail "(timeout) info shows catchpoint pid"}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
send_gdb "set follow child\n"
|
send_gdb "set follow child\n"
|
||||||
|
Reference in New Issue
Block a user