Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] gdb: Add i386-gnu-tdep to the list of objects for x86_64-*-gnu*
@ 2025-09-05 18:15 Sergio Durigan Junior
  2025-09-06 17:41 ` Kevin Buettner
  0 siblings, 1 reply; 7+ messages in thread
From: Sergio Durigan Junior @ 2025-09-05 18:15 UTC (permalink / raw)
  To: GDB Patches
  Cc: Andrew Burgess, Flavio Cruz, Sergio Durigan Junior, Mark Wielaard

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] gdb: Add i386-gnu-tdep to the list of objects for x86_64-*-gnu*
  2025-09-05 18:15 [PATCH] gdb: Add i386-gnu-tdep to the list of objects for x86_64-*-gnu* Sergio Durigan Junior
@ 2025-09-06 17:41 ` Kevin Buettner
  2025-09-07  1:57   ` Sergio Durigan Junior
  0 siblings, 1 reply; 7+ messages in thread
From: Kevin Buettner @ 2025-09-06 17:41 UTC (permalink / raw)
  To: Sergio Durigan Junior
  Cc: gdb-patches, Andrew Burgess, Flavio Cruz, Mark Wielaard

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>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] gdb: Add i386-gnu-tdep to the list of objects for x86_64-*-gnu*
  2025-09-06 17:41 ` Kevin Buettner
@ 2025-09-07  1:57   ` Sergio Durigan Junior
  2025-09-07 22:08     ` Joel Brobecker
  0 siblings, 1 reply; 7+ messages in thread
From: Sergio Durigan Junior @ 2025-09-07  1:57 UTC (permalink / raw)
  To: Kevin Buettner; +Cc: gdb-patches, Andrew Burgess, Flavio Cruz, Mark Wielaard

On Saturday, September 06 2025, Kevin Buettner wrote:

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

Thanks, Kevin.

Pushed 3d22a6cee4b to master.

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] gdb: Add i386-gnu-tdep to the list of objects for x86_64-*-gnu*
  2025-09-07  1:57   ` Sergio Durigan Junior
@ 2025-09-07 22:08     ` Joel Brobecker
  2025-09-08  2:48       ` Sergio Durigan Junior
  0 siblings, 1 reply; 7+ messages in thread
From: Joel Brobecker @ 2025-09-07 22:08 UTC (permalink / raw)
  To: Sergio Durigan Junior
  Cc: Kevin Buettner, gdb-patches, Andrew Burgess, Flavio Cruz,
	Mark Wielaard, Joel Brobecker

Hi Team,

> >> 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>
> 
> Thanks, Kevin.
> 
> Pushed 3d22a6cee4b to master.

What do you think of also pushing this change to the gdb-17-branch?

-- 
Joel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] gdb: Add i386-gnu-tdep to the list of objects for x86_64-*-gnu*
  2025-09-07 22:08     ` Joel Brobecker
@ 2025-09-08  2:48       ` Sergio Durigan Junior
  2025-09-08 19:06         ` Joel Brobecker
  0 siblings, 1 reply; 7+ messages in thread
From: Sergio Durigan Junior @ 2025-09-08  2:48 UTC (permalink / raw)
  To: Joel Brobecker
  Cc: Kevin Buettner, gdb-patches, Andrew Burgess, Flavio Cruz, Mark Wielaard

On Sunday, September 07 2025, Joel Brobecker wrote:

> Hi Team,

Hey Joel!

>> >> 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>
>> 
>> Thanks, Kevin.
>> 
>> Pushed 3d22a6cee4b to master.
>
> What do you think of also pushing this change to the gdb-17-branch?

That'd be great, and it'd allow me to drop one patch from the Debian
package.

BTW,
https://inbox.sourceware.org/gdb-patches/87tt1dudhc.fsf@sergiodj.net/T/#t
also contains a patch needed for gdb-17-branch.

Thanks!

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] gdb: Add i386-gnu-tdep to the list of objects for x86_64-*-gnu*
  2025-09-08  2:48       ` Sergio Durigan Junior
@ 2025-09-08 19:06         ` Joel Brobecker
  2025-09-09  0:19           ` Sergio Durigan Junior
  0 siblings, 1 reply; 7+ messages in thread
From: Joel Brobecker @ 2025-09-08 19:06 UTC (permalink / raw)
  To: Sergio Durigan Junior
  Cc: Joel Brobecker, Kevin Buettner, gdb-patches, Andrew Burgess,
	Flavio Cruz, Mark Wielaard

> >> >> 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>
> >> 
> >> Thanks, Kevin.
> >> 
> >> Pushed 3d22a6cee4b to master.
> >
> > What do you think of also pushing this change to the gdb-17-branch?
> 
> That'd be great, and it'd allow me to drop one patch from the Debian
> package.

Let's backport, then. I think this one is pretty straightforward.

-- 
Joel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] gdb: Add i386-gnu-tdep to the list of objects for x86_64-*-gnu*
  2025-09-08 19:06         ` Joel Brobecker
@ 2025-09-09  0:19           ` Sergio Durigan Junior
  0 siblings, 0 replies; 7+ messages in thread
From: Sergio Durigan Junior @ 2025-09-09  0:19 UTC (permalink / raw)
  To: Joel Brobecker
  Cc: Kevin Buettner, gdb-patches, Andrew Burgess, Flavio Cruz, Mark Wielaard

On Monday, September 08 2025, Joel Brobecker wrote:

>> >> >> 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>
>> >> 
>> >> Thanks, Kevin.
>> >> 
>> >> Pushed 3d22a6cee4b to master.
>> >
>> > What do you think of also pushing this change to the gdb-17-branch?
>> 
>> That'd be great, and it'd allow me to drop one patch from the Debian
>> package.
>
> Let's backport, then. I think this one is pretty straightforward.

Agreed.  I've set the target milestone of the bug to 17.1 and pushed the
commit to the gdb-17-branch.

Thanks!

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-09-09  0:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-05 18:15 [PATCH] gdb: Add i386-gnu-tdep to the list of objects for x86_64-*-gnu* Sergio Durigan Junior
2025-09-06 17:41 ` Kevin Buettner
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox