[gdb/testsuite] Use gdb_gcore_cmd in gdb.threads/gcore-thread.exp
authorTom de Vries <tdevries@suse.de>
Wed, 16 Nov 2022 16:14:34 +0000 (17:14 +0100)
committerTom de Vries <tdevries@suse.de>
Wed, 16 Nov 2022 16:14:34 +0000 (17:14 +0100)
commitcf76db71dd68d33593fdd5b6825ddc0e62735e50
tree6b1f64199ae9211e4b897b99dce3e05746122c05
parentd2bbd19d8e16370ebb853e2bf436e5b282177830
[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.
gdb/testsuite/gdb.threads/gcore-thread.exp