Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Sergio Durigan Junior <sergiodj@sergiodj.net>
Cc: gdb-patches@sourceware.org, Andrew Burgess <aburgess@redhat.com>,
	Flavio Cruz <flaviocruz@gmail.com>,
	Mark Wielaard <mark@klomp.org>
Subject: Re: [PATCH] gdb: Add i386-gnu-tdep to the list of objects for x86_64-*-gnu*
Date: Sat, 6 Sep 2025 10:41:25 -0700	[thread overview]
Message-ID: <20250906103954.1a09b0ed@f41-zbm-amd> (raw)
In-Reply-To: <20250905181507.2020753-1-sergiodj@sergiodj.net>

On Fri,  5 Sep 2025 14:15:07 -0400
Sergio Durigan Junior <sergiodj@sergiodj.net> wrote:

> When starting GDB on Hurd amd64, one will currently see the following
> warning:
> 
>   # gdb -q
>   gdb: warning: A handler for the OS ABI "GNU/Hurd" is not built into
> this configuration of GDB.  Attempting to continue with the default i386
> settings. (gdb)
> 
> This happens because, in gdb/configure.tgt, the "x86_64-*-gnu*" target
> is not pulling in the i386-gnu-tdep.o object, which means that only
> 64-bit debugging is currently supported.
> 
> The fix here is to add i386-gnu-tdep.o to the gdb_target_obs for Hurd
> amd64.
> 
> Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
> Suggested-by: Andrew Burgess <aburgess@redhat.com>
> Reported-by: Mark Wielaard <mark@klomp.org>
> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33377
> ---
>  gdb/configure.tgt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gdb/configure.tgt b/gdb/configure.tgt
> index 332f5b7513c..f33d3de9214 100644
> --- a/gdb/configure.tgt
> +++ b/gdb/configure.tgt
> @@ -754,7 +754,7 @@ x86_64-*-rtems*)
>  	;;
>  x86_64-*-gnu*)
>  	# Target: x86_64 running the GNU Hurd
> -	gdb_target_obs="amd64-gnu-tdep.o glibc-tdep.o solib-svr4.o"
> +	gdb_target_obs="amd64-gnu-tdep.o i386-gnu-tdep.o glibc-tdep.o
> solib-svr4.o" ;;
>  xtensa*-*-*linux*)
>  	# Target: GNU/Linux Xtensa
> -- 
> 2.50.1
> 

LGTM.

Approved-by: Kevin Buettner <kevinb@redhat.com>


  reply	other threads:[~2025-09-06 17:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-05 18:15 Sergio Durigan Junior
2025-09-06 17:41 ` Kevin Buettner [this message]
2025-09-07  1:57   ` Sergio Durigan Junior
2025-09-07 22:08     ` Joel Brobecker
2025-09-08  2:48       ` Sergio Durigan Junior
2025-09-08 19:06         ` Joel Brobecker
2025-09-09  0:19           ` Sergio Durigan Junior

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=20250906103954.1a09b0ed@f41-zbm-amd \
    --to=kevinb@redhat.com \
    --cc=aburgess@redhat.com \
    --cc=flaviocruz@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=mark@klomp.org \
    --cc=sergiodj@sergiodj.net \
    /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