ARMC-09 : gdb simulator gives Unhandled v6 thumb insn: 4601
BrianSidebotham opened this issue · 2 comments
When debugging armc-09 with the arm-none-eabi-gdb simulator the error message
Unhandled v6 thumb insn: 4601
To repeat:
arm-none-eabi-gdb
file kernel.elf
target sim
load
break _start
run
s
....
s
is thrown from inside malloc in newlib.
I reproduce with a crosstool-ng built with crosstool-ng https://github.com/************/newlib-examples/tree/af3116ede68cc7b4192dc5212c556baec3195b25#gdb-builtin-cpu-simulator and then running an userland program compiled with glibc: https://github.com/************/arm-assembly-cheat/blob/cd232dcaf32c0ba6399b407e0b143d19b6ec15f4/v7/mov.S (needs to add -static
as well).
The real question is why not just use GDB as shown at: https://github.com/************/newlib-examples/tree/af3116ede68cc7b4192dc5212c556baec3195b25#gdb-builtin-cpu-simulator
Non of the toolchains these days include the simulator option :(