From: Pedro Alves <pedro@palves.net>
To: Tom de Vries <tdevries@suse.de>, gdb-patches@sourceware.org
Subject: Re: [PATCH v2] [gdb/testsuite] Handle ptrace operation not permitted in can_spawn_for_attach
Date: Mon, 6 May 2024 12:33:36 +0100 [thread overview]
Message-ID: <6d6ae11b-6298-4611-89c9-4dd2a3e789c3@palves.net> (raw)
In-Reply-To: <20240501083433.19966-1-tdevries@suse.de>
On 2024-05-01 09:34, Tom de Vries wrote:
>
> - # Assume yes.
> - return 1
> + # The normal sequence to use for a runtime test like
> + # can_spawn_for_attach_1 is:
> + # - gdb_exit (don't use a running gdb, we don't know what state it is in),
> + # - gdb_start (start a new gdb), and
> + # - gdb_exit (cleanup).
> + #
> + # By making can_spawn_for_attach_1 a gdb_caching_proc, we make it
> + # unpredictable which test-case will call it first, and consequently a
> + # test-case may pass in say a full test run, but fail when run
> + # individually, due to a can_spawn_for_attach call in location where a
"in a location", I presume.
> + # gdb_exit (as can_spawn_for_attach_1 does) breaks things.
Otherwise,
Approved-By: Pedro Alves <pedro@palves.net>
Thank you.
next prev parent reply other threads:[~2024-05-06 11:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-01 8:34 Tom de Vries
2024-05-01 9:08 ` Tom de Vries
2024-05-06 11:33 ` Pedro Alves [this message]
2024-05-17 3:42 ` Simon Marchi
2024-05-17 9:54 ` Tom de Vries
-- strict thread matches above, loose matches on Subject: below --
2024-04-18 6:32 Tom de Vries
2024-04-24 19:40 ` Pedro Alves
2024-04-24 21:35 ` Tom de Vries
2024-04-26 18:50 ` Pedro Alves
2024-05-01 8:42 ` Tom de Vries
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=6d6ae11b-6298-4611-89c9-4dd2a3e789c3@palves.net \
--to=pedro@palves.net \
--cc=gdb-patches@sourceware.org \
--cc=tdevries@suse.de \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).