[PATCH 0/2] Add warning if the native target is not supported

Guinevere Larsen
2025-11-06T19:46:43Z

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 warning the user
when GDB starts that there is no native target, and instructs the user
on how to get a list of supported architectures, to know what they'll be
able to remotely debug.

Guinevere Larsen (2):
gdb: introduce command "info architecture"
gdb: add warning when no native target is available

gdb/NEWS | 4 ++++
gdb/arch-utils.c | 28 ++++++++++++++++++++++++++++
gdb/doc/gdb.texinfo | 5 +++++
gdb/main.c | 5 +++++
4 files changed, 42 insertions(+)

base-commit: af68056244a6c84ee296db5560d8d53f4e829261
--
2.51.0