Home | History | Annotate | Download | only in gdb.base

Lines Matching refs:detach

68 # the 'set follow-fork-mode' command, DETACH is the argument to the 
69 # 'set detach-on-fork' command, and CMD is the GDB command used to
70 # execute the program past the fork. If the value of WHO or DETACH is
73 proc_with_prefix test_follow_fork { follow-fork-mode detach-on-fork cmd } {
97 # Set detach-on-fork mode if we aren't using the default.
98 if {${detach-on-fork} == "default"} {
99 set detach-on-fork "on"
101 gdb_test_no_output "set detach-on-fork ${detach-on-fork}"
104 gdb_test "show detach-on-fork" \
105 "Whether gdb will detach.* fork is ${detach-on-fork}."
120 if {${detach-on-fork} == "on"} {
124 } elseif {${follow-fork-mode} == "parent" && ${detach-on-fork} == "on"} {
137 if {${follow-fork-mode} == "parent" && ${detach-on-fork} == "on"} {
139 # Follow parent / detach child: the only inferior is the parent.
142 } elseif {${follow-fork-mode} == "parent" && ${detach-on-fork} == "off"} {
151 } elseif {${follow-fork-mode} == "child" && ${detach-on-fork} == "on"} {
153 # Follow child / detach parent: the child is under debug and is
158 } elseif {${follow-fork-mode} == "child" && ${detach-on-fork} == "off"} {
184 if {${detach-on-fork} == "off" || ${follow-fork-mode} == "child"} {
440 # values for follow-fork-mode and detach-on-fork, using either a
452 foreach_with_prefix detach-on-fork {"on" "off"} {
454 test_follow_fork ${follow-fork-mode} ${detach-on-fork} $cmd