[gdb/testsuite] Use gdb_gcore_cmd in gdb.threads/gcore-thread.exp

I noticed a plain gcore command in test-case gdb.threads/gcore-thread.exp:
...
    gdb_test "gcore $core0file" "Saved corefile .*" \
      "save a zeroed-threads corefile"
...

Use gdb_gcore_cmd instead.

Tested on x86_64-linux.
This commit is contained in:
Tom de Vries 2022-11-16 17:14:34 +01:00
parent d2bbd19d8e
commit cf76db71dd

View File

@ -106,7 +106,7 @@ foreach symbol {__stack_user stack_used} {
}
if {"$core0file" != ""} {
gdb_test "gcore $core0file" "Saved corefile .*" "save a zeroed-threads corefile"
gdb_gcore_cmd $core0file "save a zeroed-threads corefile"
}