Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Step Debug Inline Assembly code: (3 Items)
   
Step Debug Inline Assembly code  
Greetings,

I direly need to debug inline assembly blocks, which I have so far failed to do as the debugger, even when using single 
step method or switching into the disassembly windows, just executes the whole block in one single step.


Using Momentics IDE 4.8, Gcc 4.6.1 toolchain.

Thanks for any hints on how to do this.

Andy
Re: Step Debug Inline Assembly code  
You need to select "instruction stepping mode" or use "stepi" command in 
gdb console.

Otherwise, gdb will attempt to step single source line of code; if the 
code in question is hand-written assembly it typically has no line 
information associated with it and so gdb will step until it returns.

---
Aleksandar



On 12-11-12 08:14 AM, Andreas Beschorner wrote:
> Greetings,
>
> I direly need to debug inline assembly blocks, which I have so far failed to do as the debugger, even when using 
single step method or switching into the disassembly windows, just executes the whole block in one single step.
>
>
> Using Momentics IDE 4.8, Gcc 4.6.1 toolchain.
>
> Thanks for any hints on how to do this.
>
> Andy
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post97086
> To cancel your subscription to this discussion, please e-mail general-ide-unsubscribe@community.qnx.com
>

Re: Step Debug Inline Assembly code  
Great, thanks a lot for that information! stepi works as expected.
Andy