From cf76db71dd68d33593fdd5b6825ddc0e62735e50 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 16 Nov 2022 17:14:34 +0100 Subject: [PATCH] [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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } -- 2.30.2