GDB 16.3: is it possible to cross-debug an x64 core from ARM?
Tom Tromey
tom@tromey.com
Mon Dec 1 19:53:07 GMT 2025
>>>>> "Paul" == Paul Smith via Gdb <gdb@sourceware.org> writes:
Paul> But, if I try to build an aarch64 GDB (on an ARM system) that has
Paul> support for debugging x86_64 core files, the build fails like this:
Paul> $ ../gdb-6.3/configure ... --enable-targets=x86_64-linux-gnu
Paul> ...
Paul> $ make -j$(nprocs)
Paul> ...
Paul> make[2]: *** No rule to make target '../sim/aarch64/libsim.a', needed by 'gdb'. Stop.
Either the sim should be auto-disabled when it isn't available for the
port, or it should build and be linked in. So one way or another this
is a bug. Is the sim code built for you?
FWIW I normally use --enable-targets=all so I'm usually seeing all the
sims be built (though only one can be linked in).
A workaround for you would be to disable the sims, aka --disable-sim.
However it would be better to find out what's really gone wrong.
Tom
More information about the Gdb
mailing list