Implement "info threads -gid"
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.multi / tids.exp
index 6895f3c9561aa0e7819da0e4ee1dec0298a06a2d..b0c768fbc39cf926dad9040404dec3f57dece32f 100644 (file)
@@ -150,6 +150,14 @@ with_test_prefix "two inferiors" {
     info_threads "" "1.1 1.2 2.1 2.2" \
        "info threads again"
 
+    # Same, but show the global ID.
+    gdb_test "info threads -gid" \
+       [multi_line \
+            "  1\.1 +1 +.*" \
+            "\\* 1\.2 +4 +.* thread_function1 .* at .*$srcfile:.*" \
+            "  2\.1 +2 +.*" \
+            "  2\.2 +3 +.* thread_function1 .* at .*$srcfile:.*"]
+
     # Confirm the convenience variable show the expected number.
     gdb_test "p \$_thread == 2" " = 1"
 
This page took 0.024436 seconds and 4 git commands to generate.