From: Guinevere Larsen <guinevere@redhat.com>
To: Ciaran Woodward <ciaranwoodward@xmos.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 10:40:31 -0300 [thread overview]
Message-ID: <1d1c0ce0-ab58-4b8b-ba05-119f8401ab8d@redhat.com> (raw)
In-Reply-To: <AS8PR09MB53033D091703542443F3ECA8B982A@AS8PR09MB5303.eurprd09.prod.outlook.com>
On 1/9/26 9:36 AM, Ciaran Woodward wrote:
>> -----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
>
Hmmm, that's a good point. I think I can add a switch to this, to be
added to the gdbinit (or maybe gdbearlyinit), will cook a v3 in a moment.
--
Cheers,
Guinevere Larsen
It/she
next prev parent reply other threads:[~2026-01-09 13:41 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
2026-01-09 13:40 ` Guinevere Larsen [this message]
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=1d1c0ce0-ab58-4b8b-ba05-119f8401ab8d@redhat.com \
--to=guinevere@redhat.com \
--cc=ciaranwoodward@xmos.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