From: Eli Zaretskii <eliz@gnu.org>
To: Andrew Burgess <aburgess@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb: use current executable for 'remote exec-file' in some cases
Date: Mon, 06 Oct 2025 18:43:55 +0300 [thread overview]
Message-ID: <86plb0c9xg.fsf@gnu.org> (raw)
In-Reply-To: <40cbbd9f0082b07e9767656fe044bbe9280983a3.1759763251.git.aburgess@redhat.com> (message from Andrew Burgess on Mon, 6 Oct 2025 16:07:50 +0100)
> From: Andrew Burgess <aburgess@redhat.com>
> Cc: Andrew Burgess <aburgess@redhat.com>
> Date: Mon, 6 Oct 2025 16:07:50 +0100
>
> diff --git a/gdb/NEWS b/gdb/NEWS
> index 2c73776944f..cfea3cf95c9 100644
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -31,6 +31,13 @@
> subsequent runs of the inferior will use the same arguments as the
> first run.
>
> +* When connected to an extended-remote target which does not have an
> + executable specified, if the current executable is specified using a
> + 'target:' prefix; or if the sysroot does not have a 'target:'
> + prefix, and the current executable is within the sysroot; then GDB
> + can use the current executable name in order to start inferiors on
> + the remote without having to 'set remote exec-file'.
This single sentence is quite a mouth-full. Could you perhaps split
it into two or more simpler sentences, e.g., the first one describing
the capability and the rest describing the limitations/restrictions?
> --- a/gdb/doc/gdb.texinfo
> +++ b/gdb/doc/gdb.texinfo
> @@ -24668,7 +24668,9 @@ Remote Configuration
> Select the file used for @code{run} with @code{target
> extended-remote}. This should be set to a filename valid on the
> target system. If it is not set, the target will use a default
> -filename (e.g.@: the last program run).
> +filename (e.g.@: the last program run, or a filename derived from the
> +current executable if @value{GDBN} and the remote can see the same
> +file system).
This part is okay.
Thanks.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
next prev parent reply other threads:[~2025-10-06 15:44 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-06 15:07 Andrew Burgess
2025-10-06 15:43 ` Eli Zaretskii [this message]
2025-10-09 16:17 ` Simon Marchi
2025-10-11 13:34 ` [PATCH 0/2] Auto setting of 'remote exec-file' Andrew Burgess
2025-10-11 13:34 ` [PATCH 1/2] gdb/remote: replace use of std::pair with an actual struct Andrew Burgess
2025-10-11 13:46 ` Simon Marchi
2025-10-12 8:57 ` Andrew Burgess
2025-10-12 12:05 ` Simon Marchi
2025-10-12 13:13 ` Andrew Burgess
2025-11-19 10:32 ` Andrew Burgess
2025-10-11 13:34 ` [PATCH 2/2] gdb: use current executable for 'remote exec-file' in some cases Andrew Burgess
2025-10-11 14:45 ` Eli Zaretskii
2025-11-07 20:46 ` Simon Marchi
2025-11-11 15:59 ` Andrew Burgess
2026-01-14 1:17 ` Simon Marchi
2026-01-14 16:48 ` Andrew Burgess
2026-01-14 20:01 ` [PATCH] gdb/testsuite: fix failure in gdb.server/fetch-exec-and-args.exp Andrew Burgess
2026-01-15 21:13 ` Simon Marchi
2026-01-22 15:31 ` Andrew Burgess
2025-11-19 10:32 ` [PATCH 2/2] gdb: use current executable for 'remote exec-file' in some cases Andrew Burgess
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=86plb0c9xg.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=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