Re: GDB 16.3: is it possible to cross-debug an x64 core from ARM?

Luis via Gdb <[email protected]> Fri, 5 Dec 2025 19:10:24 +0000
Newsgroups gmane.comp.gdb.devel
Message-ID <CANnS9rs0dnWXr_4_0-9VgsHtDP0632Nbv0LKhZR5zXc6U4AVjQ@mail.gmail.com>
To be honest, the aarch64 sim is very outdated. I'm not sure why we still
carry it around.

On Wed, Dec 3, 2025, 13:14 Paul Smith via Gdb <[email protected]> wrote:

> On Mon, 2025-12-01 at 16:13 -0500, Simon Marchi wrote:
> > I think I found the problem:
> >
> > https://gitlab.com/gnutools/binutils-gdb/-
> > /blob/887bcaf98ea8e1ef76f6dd429b01b5258a782172/sim/configure.ac#L73
> >
> > We essentially do:
> >
> >     for targ in aarch64-unknown-linux-gnu x86_64-linux-gnu; do
> >         // try to match $targ against all known targets
> >     done
>
> Thanks, I was in the middle of looking at that when I got your email :)
>
> I submitted a patch to fix this:
> https://sourceware.org/pipermail/gdb-patches/2025-December/223119.html
>
> I did it a different way than the simplest option, but that to me seems
> safer and more reliable.  I tried to keep with the same style used in
> other sh code in configure.ac.
>