From: Ciaran Woodward <ciaranwoodward@xmos.com>
To: Guinevere Larsen <guinevere@redhat.com>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: RE: [PATCH v2 2/2] gdb: add warning when no native target is available
Date: Fri, 9 Jan 2026 12:36:44 +0000 [thread overview]
Message-ID: <AS8PR09MB53033D091703542443F3ECA8B982A@AS8PR09MB5303.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <20260109115621.26003-3-guinevere@redhat.com>
> -----Original Message-----
> From: Guinevere Larsen <guinevere@redhat.com>
>
> When a user starts GDB, they have no way of knowing if native debugging
> will be supported or not. This is most relevant for Mac users, since
> GDB hasn't been ported to Apple's CPUs yet.
>
> This patch adds a warning if, after initializing all files, GDB was
> unable to find an appropriate native target for the session, informing
> the user that they will only be able to debug remotely.
Thanks for continuing to focus on usability :)
I thought I would add my perspective as a primarily embedded developer. Most
of the GDBs I use are "cross GDBs", for debugging embedded targets that
can't run GDB themselves. These get configured by having a different HOST
and TARGET in the build config, and I tend to think that usually its quite
clear that you're using one instead of your system GDB.
I think for such debuggers, it would be good to have this warning suppressed,
since users usually obtain it as part of a tool suite for that same platform,
so wouldn't be expected to get reminded that they can't use it to debug host
programs.
Thanks,
Ciaran
next prev parent reply other threads:[~2026-01-09 12:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-09 11:56 [PATCH v2 0/2] Add warning if the native target is not supported Guinevere Larsen
2026-01-09 11:56 ` [PATCH v2 1/2] gdb: improve help text for set commands with limited options Guinevere Larsen
2026-01-12 15:35 ` Andrew Burgess
2026-01-09 11:56 ` [PATCH v2 2/2] gdb: add warning when no native target is available Guinevere Larsen
2026-01-09 12:36 ` Ciaran Woodward [this message]
2026-01-09 13:40 ` Guinevere Larsen
2026-01-09 14:16 ` Ciaran Woodward
2026-01-09 14:26 ` Guinevere Larsen
2026-01-09 16:53 ` Ciaran Woodward
2026-01-12 15:33 ` Andrew Burgess
2026-01-13 18:23 ` Guinevere Larsen
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=AS8PR09MB53033D091703542443F3ECA8B982A@AS8PR09MB5303.eurprd09.prod.outlook.com \
--to=ciaranwoodward@xmos.com \
--cc=gdb-patches@sourceware.org \
--cc=guinevere@redhat.com \
/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