Page 1 of 1

arm-eabi-gdb unable to disassemble thumb code ?

Posted: Fri Dec 03, 2010 10:20 pm
by PypeBros
I use ddd for debugging, a front-end to gdb that was previously capable of working quite well with arm-eabi-gdb. With devkitarm 32, however, it looks like it is no longer able to disassemble Thumb code. At last, it complains about "A syntax error in expression, near `<hex address>'.
The hex address looks to be a part of the offset within a jump instruction.

Any hint ?

Ps: it could be a DDD-specific issue (unfortunately) as manually invoking "disas main" on the gdb console works fine.

Re: arm-eabi-gdb unable to disassemble thumb code ?

Posted: Wed Dec 08, 2010 3:03 am
by WinterMute
It's a DDD problem, you'll need to find one that's been updated for gdb 7.2

Re: arm-eabi-gdb unable to disassemble thumb code ?

Posted: Thu Dec 09, 2010 11:55 am
by PypeBros
Thanks, yeah. I figured out yesterday that it affected not only thumb ARM, but all the code, and that there was a trivial patch on the Ubuntu launchpad.

Sorry for the trouble. Now, I'll have to find out how to avoid those stalls with desmume's GDB stub :P