From: Eli Zaretskii <eliz@gnu.org>
To: Andrew Burgess <aburgess@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 08/10] gdb: remote filesystem can be local to GDB in some cases
Date: Wed, 16 Aug 2023 19:40:17 +0300 [thread overview]
Message-ID: <83ttsz6ivi.fsf@gnu.org> (raw)
In-Reply-To: <1d040494926ba319681280137d05b903cb314572.1692200989.git.aburgess@redhat.com> (message from Andrew Burgess via Gdb-patches on Wed, 16 Aug 2023 16:55:04 +0100)
> Cc: Andrew Burgess <aburgess@redhat.com>
> Date: Wed, 16 Aug 2023 16:55:04 +0100
> From: Andrew Burgess via Gdb-patches <gdb-patches@sourceware.org>
>
> diff --git a/gdb/NEWS b/gdb/NEWS
> index d83f097d937..99ed057c412 100644
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -106,6 +106,13 @@
> subsequent runs of the inferior will use the same arguments as the
> first run.
>
> +* For remote targets that support the qMachineId packet, if GDB
> + believes that the remote target is on the same host as GDB itself,
> + and that GDB can access the same files as the remote target, then
> + GDB will take advantage of this to access files directly, rather
> + than copying them from the remote target. This behaviour can be
> + disable using the new command 'set remote local-filesystem off'.
> +
> * New commands
>
> set debug breakpoint on|off
> @@ -133,6 +140,24 @@ show always-read-ctf
> info main
> Get main symbol to identify entry point into program.
>
> +set remote local-filesystem on|off|auto
> +show remote local-filesystem
> + When 'on' GDB will assume that its local filesystem is the same
> + filesystem as the remote target, this effectively means GDB will
> + ignore any 'target:' prefix in the sysroot setting. When 'off' GDB
> + will use the sysroot value to determine if a path is remote or not;
> + a sysroot starting 'target:' indicates that paths should be treated
> + as remote.
> +
> + The default value for this setting is 'auto', in this mode GDB will
> + make use of the qMachineId packet to determine if the remote target
> + is on the same host as GDB or not. For remote targets that don't
> + support qMachineId, or in cases where the qMachineId indicates that
> + the remote target is truly remote, GDB will behave as if this
> + setting is 'off'. Only when qMachineId is supported, and qMachineId
> + indicates the remote target is on the same host as GDB, will GDB
> + treat this setting as 'on'.
> +
This part is OK.
> +@anchor{set remote local-filesystem}
> +@item set remote local-filesystem @r{[}auto@r{|}on@r{|}off@r{]}
> +@itemx show remote local-filesystem
> +@cindex filesystem, for remote target
@cindex before @item again.
> + add_setshow_auto_boolean_cmd ("local-filesystem", class_files,
> + &remote_filesystem_is_local, _("\
> +Set whether the remote's filesystem is local to GDB."), _("\
> +Show whether the remote's filesystem is local to GDB."), _("\
> +When 'on' GDB assumes that the remote target's filesystem is the same\n\
^
Comma missing there.
> +When 'off' GDB will always fetch files using the remote protocol,\n\
^
And there.
Thanks.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
next prev parent reply other threads:[~2023-08-16 16:40 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-16 15:54 [PATCH 00/10] Improve GDB/gdbserver experience when using a local gdbserver Andrew Burgess
2023-08-16 15:54 ` [PATCH 01/10] gdb: have remote_target::extended_remote_run take the exec filename Andrew Burgess
2023-08-23 9:30 ` Alexandra Petlanova Hajkova
2023-08-16 15:54 ` [PATCH 02/10] gdb: improve how 'remote exec-file' is stored and accessed Andrew Burgess
2023-08-23 8:44 ` Alexandra Petlanova Hajkova
2023-08-16 15:54 ` [PATCH 03/10] gdb: improve show text and help text for 'remote exec-file' Andrew Burgess
2023-08-23 11:36 ` Mark Wielaard
2023-08-24 8:56 ` Alexandra Petlanova Hajkova
2023-08-16 15:55 ` [PATCH 04/10] gdb/gdbserver: add new qDefaultExecAndArgs packet Andrew Burgess
2023-08-16 16:36 ` Eli Zaretskii
2023-08-28 15:35 ` Tom Tromey
2023-08-16 15:55 ` [PATCH 05/10] gdb: detect when gdbserver has no default executable set Andrew Burgess
2023-08-16 15:55 ` [PATCH 06/10] gdb: make use of is_target_filename Andrew Burgess
2023-08-23 13:35 ` Mark Wielaard
2023-08-16 15:55 ` [PATCH 07/10] gdb: add qMachineId packet Andrew Burgess
2023-08-16 16:34 ` Eli Zaretskii
2023-08-25 14:49 ` Andrew Burgess
2023-08-25 15:01 ` Eli Zaretskii
2023-09-26 14:42 ` Andrew Burgess
2023-09-29 7:45 ` Eli Zaretskii
2023-08-22 2:39 ` Thiago Jung Bauermann
2023-08-23 9:24 ` Mark Wielaard
2023-08-23 11:36 ` Andrew Burgess
2023-08-28 16:06 ` Tom Tromey
2023-08-16 15:55 ` [PATCH 08/10] gdb: remote filesystem can be local to GDB in some cases Andrew Burgess
2023-08-16 16:40 ` Eli Zaretskii [this message]
2023-08-16 15:55 ` [PATCH 09/10] gdb: use exec_file with remote targets when possible Andrew Burgess
2023-08-16 15:55 ` [PATCH 10/10] gdb: remote the get_remote_exec_file function Andrew Burgess
2023-08-23 13:42 ` Mark Wielaard
2023-08-22 10:41 ` [PATCH 00/10] Improve GDB/gdbserver experience when using a local gdbserver Alexandra Petlanova Hajkova
2023-08-23 14:32 ` Mark Wielaard
2023-08-23 15:26 ` Andrew Burgess
2023-08-25 15:34 ` [PATCHv2 " Andrew Burgess
2023-08-25 15:34 ` [PATCHv2 01/10] gdb: have remote_target::extended_remote_run take the exec filename Andrew Burgess
2023-08-25 15:34 ` [PATCHv2 02/10] gdb: improve how 'remote exec-file' is stored and accessed Andrew Burgess
2023-08-25 15:34 ` [PATCHv2 03/10] gdb: improve show text and help text for 'remote exec-file' Andrew Burgess
2023-08-25 15:34 ` [PATCHv2 04/10] gdb/gdbserver: add new qDefaultExecAndArgs packet Andrew Burgess
2023-08-26 6:46 ` Eli Zaretskii
2023-08-25 15:34 ` [PATCHv2 05/10] gdb: detect when gdbserver has no default executable set Andrew Burgess
2023-08-25 15:34 ` [PATCHv2 06/10] gdb: make use of is_target_filename Andrew Burgess
2023-08-25 15:34 ` [PATCHv2 07/10] gdb: add qMachineId packet Andrew Burgess
2023-08-26 6:54 ` Eli Zaretskii
2023-08-25 15:34 ` [PATCHv2 08/10] gdb: remote filesystem can be local to GDB in some cases Andrew Burgess
2023-08-26 6:49 ` Eli Zaretskii
2023-08-25 15:34 ` [PATCHv2 09/10] gdb: use exec_file with remote targets when possible Andrew Burgess
2023-08-25 15:34 ` [PATCHv2 10/10] gdb: remove the get_remote_exec_file function 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=83ttsz6ivi.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).