Answer the question
In order to leave comments, you need to log in
How to debug code in Eclipse with gdb target remote + simulation in qemu?
In Eclipse (mars 2) a test project is built, consisting of test.c, startup.s and test.ld files. The assembly goes with the help of its makefile set on arm-none-eabi-gcc. The resulting main.bin is picked up by QEMU from the Run->External Tools->configuration menu. The GDB Debugger from the .GDBInit file picks up the target remote localhost:1234 option. Then QEMU starts and debugging. Debugging starts without error only if continue is present in .GDBInit. In this case, the specified breakpoints are ignored, the code in QEMU is executed completely. How to debug code for ARM in such conditions?
Answer the question
In order to leave comments, you need to log in
I have no idea what you have for ARM in QEMU, but for example, in the Android NDK you need to specify the GDB file with symbols, that is, not like this: gdb
but like this: gdb libtest.so
(the path to the file on the disk where the gdb client is launched, not the phone)
when asking a question, you need to show the contents of the files, but don’t count on much help at all, I didn’t wait for three forums and solved the problem myself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question