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" }