Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Debugging optimised code: (3 Items)
   
Debugging optimised code  
Hi,

A customer has a question below regarding debugging optimised code:

In our existing tools, single-stepping in the debugger is somewhat awkward when all the GCC optimisations are enabled, 
as quite a few source code lines end up with no equivalent in the assembler. How does Momentics handle this?


Thanks,

Garry
Re: Debugging optimised code  
Momentics can only do what debugger can do and that is odd-looking
stepping.

After optimizations, sequence of execution does not always follow the
source statements and what you can see is "jumping" back and forth
between seemingly unrelated source lines.

This is "how it works".


On Tue, 2010-11-23 at 11:32 -0500, Garry Bleasdale wrote:
> 
> Hi,
> 
> A customer has a question below regarding debugging optimised code:
> 
> In our existing tools, single-stepping in the debugger is somewhat
> awkward when all the GCC optimisations are enabled, as quite a few
> source code lines end up with no equivalent in the assembler. How does
> Momentics handle this?
> 
> 
> Thanks,
> 
> Garry
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post75660
> 
> 
> 

RE: Debugging optimised code  
I guessed that would be the case.  Cheers Aleksander.

Regards,
 
Garry
 
Garry Bleasdale
Field Application Engineer
QNX Software Systems (UK + Ireland)
 
Email - gbleasdale@qnx.com
Tel - +44 (0) 1223 862077
www.qnx.com

-----Original Message-----
From: Aleksandar Ristovski [mailto:community-noreply@qnx.com] 
Sent: 23 November 2010 16:37
To: general-toolchain
Subject: Re: Debugging optimised code

Momentics can only do what debugger can do and that is odd-looking
stepping.

After optimizations, sequence of execution does not always follow the
source statements and what you can see is "jumping" back and forth
between seemingly unrelated source lines.

This is "how it works".


On Tue, 2010-11-23 at 11:32 -0500, Garry Bleasdale wrote:
> 
> Hi,
> 
> A customer has a question below regarding debugging optimised code:
> 
> In our existing tools, single-stepping in the debugger is somewhat
> awkward when all the GCC optimisations are enabled, as quite a few
> source code lines end up with no equivalent in the assembler. How does
> Momentics handle this?
> 
> 
> Thanks,
> 
> Garry
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post75660
> 
> 
> 





_______________________________________________

General
http://community.qnx.com/sf/go/post75662