Clean up "Reading symbols" output
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / fork-running-state.exp
index 27ed8a43e935e9195beaa79b2fd0cec7cc8e6f18..c15bc53f7a06bfeb83340c632c8d78ee982852bc 100644 (file)
@@ -70,6 +70,13 @@ proc do_test { detach_on_fork follow_fork non_stop schedule_multiple } {
        gdb_test_no_output "set schedule-multiple $schedule_multiple"
     }
 
+    # If we're detaching from the parent (or child), then tell it to
+    # exit itself when its child (or parent) exits.  If we stay
+    # attached, we take care of killing it.
+    if {$detach_on_fork == "on"} {
+       gdb_test "print exit_if_relative_exits = 1" " = 1"
+    }
+
     set test "continue &"
     gdb_test_multiple $test $test {
        -re "$gdb_prompt " {
This page took 0.044566 seconds and 4 git commands to generate.