From: Guinevere Larsen <guinevere@redhat.com>
To: gdb-patches@sourceware.org
Cc: Guinevere Larsen <guinevere@redhat.com>
Subject: [PATCH v5 0/2] Add warning if the native target is not supported
Date: Tue, 10 Mar 2026 11:23:22 -0300 [thread overview]
Message-ID: <20260310142323.2619350-2-guinevere@redhat.com> (raw)
Recently I was trying to conduct a new-user test, to figure out what
things were stumbling blocks, and one of the users had a macbook. The
user on their own would not have been able to understand what was the
reason that they couldn't execute the inferior to debug it.
This series aims to make it a little more obvious, by making the warning
about not being able to "run" more self-explanatory, and instructs the user
on how to get a list of supported architectures, to know what they'll be
able to remotely debug.
For v5, some tests were updated as Linaro CI correctly pointed out that
they were failing. The updates were just to expected output, no real
logic change was required.
v4 has minor cosmetic changes and a test for the help text changes.
For v3, the warning is now only emitted if the user tries to do
something that requires the native target, such as trying to run. And
the help text now emits a comma separated list instead of 1 item per
line.
For v2, instead of adding a new command, this series changes the help
command, to make it print all available options if a command only
accepts specific options.
Guinevere Larsen (2):
gdb: improve help text for set commands with limited options
gdb: Improve warning when no native target is available
gdb/cli/cli-decode.c | 12 ++++++++++++
gdb/inf-child.c | 7 ++++++-
gdb/target.c | 5 ++++-
.../gdb.base/auto-connect-native-target.exp | 6 ++++--
gdb/testsuite/gdb.base/help.exp | 9 +++++++++
gdb/testsuite/gdb.python/py-doc-reformat.exp | 2 +-
gdb/testsuite/gdb.python/py-parameter.exp | 17 +++++++++++++----
7 files changed, 49 insertions(+), 9 deletions(-)
base-commit: 1add703e09f0f8d073cde4af9d11cd59996e9763
--
2.53.0
next reply other threads:[~2026-03-10 14:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-10 14:23 Guinevere Larsen [this message]
2026-03-10 14:23 ` [PATCH v5 1/2] gdb: improve help text for set commands with limited options Guinevere Larsen
2026-03-17 13:58 ` Andrew Burgess
2026-04-16 18:17 ` Guinevere Larsen
2026-03-10 14:23 ` [PATCH v5 2/2] gdb: Improve warning when no native target is available Guinevere Larsen
2026-03-17 11:29 ` 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=20260310142323.2619350-2-guinevere@redhat.com \
--to=guinevere@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