tech74
tech74

Reputation: 1375

Debugging inline assembly with Xcode

I have written some gcc ARM inline assembly in iphone sdk 3.1.2 however the breakpoints don't get hit (infact anywhere in the c file that contains it). How can i debug it?

Thanks

Upvotes: 2

Views: 822

Answers (1)

Mark Vellacott
Mark Vellacott

Reputation: 21

In xcode 4.2:

Set a breakpoint on the inline _asm statement
Set Product->Debug Workflow->Show Assembly When Debugging = yes
Run
When stops at breakpoint open the 'Debugger Output' window (bottom right) - (default is 'Target output')
type si at the gdb prompt then press enter (for single step)
etcetera

Upvotes: 2

Related Questions