This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: THUMB code detection for ADS 1.2 ELF emages
- From: Dmitry Smirnov <divis1969 at mail dot ru>
- To: gdb at sourceware dot org
- Date: Fri, 20 Jun 2008 15:24:55 +0400
- Subject: Re: THUMB code detection for ADS 1.2 ELF emages
- Reply-to: Dmitry Smirnov <divis1969 at mail dot ru>
Hi Stan, Dan,
Thanks for pointing this new feature. I hope it will helps me.
P.S. What do you mean by "toolchain is not marking the executable correctly"? I suppose that ADS produce the ELF that is not compartible with latest ARM ELF specs. At least, it specifies ELF as an 0x2000000 version, whereas GDB recognizes 0x4000000+.
I believe executable is correct. It mixes ARM and THUMB code. It runs on a real hardware, I can debug it with TRACE32 using this ELF. I'm trying to run this ELF on skyeye (and it runs!), but cannot debug it "in full-power" with GDB.
Stan Shebs wrote:
>Dan Jacobowitz added this bit of machinery recently; see
>http://sourceware.org/ml/gdb-patches/2008-05/msg00113.html . He points
>out that this should be a rare case, only needed if Arm and Thumb code
>are mixed within a single file; so if your GDB is having trouble
>detecting Thumb code, maybe there is some other problem, perhaps the
>toolchain is not marking the executable correctly?
>
>Stan