From: Tom de Vries Date: Wed, 16 Nov 2022 16:14:34 +0000 (+0100) Subject: [gdb/testsuite] Use gdb_gcore_cmd in gdb.threads/gcore-thread.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf76db71dd68d33593fdd5b6825ddc0e62735e50;p=binutils-gdb.git [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. --- 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" }