Add "info connections" command, "info inferiors" connection number/string
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.server / extended-remote-restart.exp
index 3ce0f0b076ab8210580ce97d96d5b85a509f3b0f..11f8a286ac96c7c18eece42c010aa72e7d45b906 100644 (file)
@@ -88,12 +88,16 @@ proc test_reload { do_kill_p follow_child_p } {
     gdb_breakpoint "breakpt"
     gdb_continue_to_breakpoint "breakpt"
 
-    # Check we have the expected inferiors.
+    set ws "\[ \t\]+"
+    set any_re "\[^\r\n\]+"
+    set connection_re $any_re
+    set executable_re $any_re
+
     gdb_test "info inferiors" \
        [multi_line \
-            "  Num  Description       Executable.*" \
-            "${parent_prefix} 1 +${live_inf_ptn} \[^\r\n\]+" \
-            "${child_prefix} 2 +${live_inf_ptn} \[^\r\n\]+" ] \
+            "  Num${ws}Description${ws}Connection${ws}Executable${ws}" \
+            "${parent_prefix} 1${ws}${live_inf_ptn}${ws}${connection_re}${executable_re}" \
+            "${child_prefix} 2${ws}${live_inf_ptn}${ws}${connection_re}${executable_re}" ] \
        "Check inferiors at breakpoint"
 
     if { $do_kill_p } {
@@ -107,9 +111,9 @@ proc test_reload { do_kill_p follow_child_p } {
        # Check the first inferior really did die.
        gdb_test "info inferiors" \
            [multi_line \
-                "  Num  Description       Executable.*" \
-                "${parent_prefix} 1 +${parent_inf_after_kill_ptn} \[^\r\n\]+" \
-                "${child_prefix} 2 +${child_inf_after_kill_ptn} \[^\r\n\]+" ] \
+                "  Num${ws}Description${ws}Connection${ws}Executable${ws}" \
+                "${parent_prefix} 1${ws}${parent_inf_after_kill_ptn}${ws}${connection_re}${executable_re}" \
+                "${child_prefix} 2${ws}${child_inf_after_kill_ptn}${ws}${connection_re}${executable_re}" ] \
            "Check inferior was killed"
     }
 
This page took 0.023677 seconds and 4 git commands to generate.