Re: GDB 16.3: is it possible to cross-debug an x64 core from ARM?
Tom Tromey <[email protected]> Mon, 01 Dec 2025 12:53:07 -0700
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Paul" == Paul Smith via Gdb <[email protected]> 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