From: Andrew Burgess <aburgess@redhat.com>
To: gdb-patches@sourceware.org
Cc: Andrew Burgess <aburgess@redhat.com>
Subject: [PUSHED] gdb/testsuite: avoid PID in test name
Date: Tue, 16 Jun 2026 20:56:50 +0100 [thread overview]
Message-ID: <60466ce68ac1a2d93c7f39b2638e24f48125fbf9.1781639780.git.aburgess@redhat.com> (raw)
In gdb.python/py-inf-exited-at-exit.exp, switch to using gdb_attach
proc when attaching in order to avoid including the process-id in the
test name.
There should be no change to what is being tested after this commit.
---
gdb/testsuite/gdb.python/py-inf-exited-at-exit.exp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.python/py-inf-exited-at-exit.exp b/gdb/testsuite/gdb.python/py-inf-exited-at-exit.exp
index 820858bd75d..3b6764abff7 100644
--- a/gdb/testsuite/gdb.python/py-inf-exited-at-exit.exp
+++ b/gdb/testsuite/gdb.python/py-inf-exited-at-exit.exp
@@ -122,7 +122,10 @@ proc_with_prefix check_with_attach {} {
gdb_breakpoint [gdb_get_line_number "Break here."]
- gdb_test "attach $testpid"
+ if { ![gdb_attach $testpid] } {
+ kill_wait_spawned_process $test_spawn_id
+ return
+ }
gdb_continue_to_breakpoint "continue to b/p in foo"
base-commit: ada409879cc393c4cf633efe3d7afb716523f6be
--
2.25.4
reply other threads:[~2026-06-16 19:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=60466ce68ac1a2d93c7f39b2638e24f48125fbf9.1781639780.git.aburgess@redhat.com \
--to=aburgess@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox