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

Message ID 20221116161456.29825-1-tdevries@suse.de
State Committed
Commit cf76db71dd68d33593fdd5b6825ddc0e62735e50
Headers
Series [pushed,gdb/testsuite] Use gdb_gcore_cmd in gdb.threads/gcore-thread.exp |

Commit Message

Tom de Vries Nov. 16, 2022, 4:14 p.m. UTC
  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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 3971740e4bba92209ab002d44ec3b20a36736ff0
  

Patch

diff --git a/gdb/testsuite/gdb.threads/gcore-thread.exp b/gdb/testsuite/gdb.threads/gcore-thread.exp
index 748831ed28e..4a77fd69509 100644
--- a/gdb/testsuite/gdb.threads/gcore-thread.exp
+++ b/gdb/testsuite/gdb.threads/gcore-thread.exp
@@ -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"
 }