[binutils-gdb] gdb: Add i386-gnu-tdep to the list of objects for x86_64-*-gnu*

Sergio Durigan Junior sergiodj@sourceware.org
Sun Sep 7 01:56:53 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3d22a6cee4b27866c544d67a82e2272ae4201f9e

commit 3d22a6cee4b27866c544d67a82e2272ae4201f9e
Author: Sergio Durigan Junior <sergiodj@sergiodj.net>
Date:   Fri Sep 5 14:03:56 2025 -0400

    gdb: Add i386-gnu-tdep to the list of objects for x86_64-*-gnu*
    
    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
    Approved-by: Kevin Buettner <kevinb@redhat.com>

Diff:
---
 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


More information about the Gdb-cvs mailing list