]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: Add i386-gnu-tdep to the list of objects for x86_64-*-gnu*
authorSergio Durigan Junior <sergiodj@sergiodj.net>
Fri, 5 Sep 2025 18:03:56 +0000 (14:03 -0400)
committerSergio Durigan Junior <sergiodj@sergiodj.net>
Tue, 9 Sep 2025 00:18:31 +0000 (20:18 -0400)
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>
(cherry picked from commit 3d22a6cee4b27866c544d67a82e2272ae4201f9e)

gdb/configure.tgt

index 728a21c2761288a794f2c3f219cd9612dfcb87a8..34ae50363402521ad0250fc7bf93bb26b2f5927f 100644 (file)
@@ -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