arm-eabi-gdb unable to disassemble thumb code ?

support for the ARM toolchain
Post Reply
User avatar
PypeBros
Posts: 40
Joined: Thu Nov 25, 2010 12:00 pm
Location: In a galaxy far, far away
Contact:

arm-eabi-gdb unable to disassemble thumb code ?

Post by PypeBros » Fri Dec 03, 2010 10:20 pm

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.
NDS is the neatest piece of hardware since the C=64! Thanks for making it programmable ^_^

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

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

Post by WinterMute » Wed Dec 08, 2010 3:03 am

It's a DDD problem, you'll need to find one that's been updated for gdb 7.2
Help keep devkitPro toolchains free, Donate today

Personal Blog

User avatar
PypeBros
Posts: 40
Joined: Thu Nov 25, 2010 12:00 pm
Location: In a galaxy far, far away
Contact:

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

Post by PypeBros » Thu Dec 09, 2010 11:55 am

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
NDS is the neatest piece of hardware since the C=64! Thanks for making it programmable ^_^

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests