public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] [gdb/testsuite] Use gdb_gcore_cmd in gdb.threads/gcore-thread.exp
@ 2022-11-16 16:14 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2022-11-16 16:14 UTC (permalink / raw)
  To: gdb-patches

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

base-commit: 3971740e4bba92209ab002d44ec3b20a36736ff0
-- 
2.35.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-16 16:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 16:14 [pushed] [gdb/testsuite] Use gdb_gcore_cmd in gdb.threads/gcore-thread.exp Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).