Re: Debugging assembly language code on iOS with Xcode 3
Re: Debugging assembly language code on iOS with Xcode 3
- Subject: Re: Debugging assembly language code on iOS with Xcode 3
- From: Wim Lewis <email@hidden>
- Date: Mon, 18 Apr 2011 17:30:31 -0700
On 18 Apr 2011, at 5:06 PM, Tom Seddon wrote:
> My issue is that I'm having difficulty using Xcode 3.2.6 to debug ARM code running on the device, when the code is defined in its own .s file. The C code correctly calls the routine, and the correct result is obtained, but the debugger can't seem to work with it.
>
> I can't seem to source-level single-step into the routine. If I try to single-step the call with Shift+Cmd+I, the call is just stepped over.
>
> Additionally, any breakpoints I set in the ARM routine are simply ignored.
>
> This appears to be specific to debugging ARM code on the device, rather than an inherent limitation in Xcode, because both of these things seem to work OK in an x86 or x64 OS X program and when running the x86 code on the simulator. In these cases, I can step through my assembly language code like I can my C code.
Hmm. Maybe the ARM version of gdb is more sensitive to the lack of debugging information than the x86 version? You could try getting an assembly file for a function using cc -S (and maybe -fverbose-asm), in addition to the flags Xcode was using, to get an assembly file that generates the same debug info the C file would have; this should hopefully act the same as the original C file and be debuggable. Then strip things out of the assembly file until it stops working.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden