Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Issue while debugging: (4 Items)
   
Issue while debugging  
I have built the executable using momentics and I am running it for debugging.
Initially it steps into functions properly after 5/6 functions it is branching to wrong path(the paths are compilation 
time conditionals) and also the variable values are not getting updated properly in the debug window.

Any suggestions ???
Re: Issue while debugging  
Could be few reasons. Top suspects: code is optimized or binary is not the same on the host and target (see debugging 
FAQ)

On 28/09/10 03:24 AM, Girisha SG wrote:
> I have built the executable using momentics and I am running it for debugging.
> Initially it steps into functions properly after 5/6 functions it is branching to wrong path(the paths are compilation
 time conditionals) and also the variable values are not getting updated properly in the debug window.
> 
> Any suggestions ???
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post68720
> 
Re: Issue while debugging  
Code is not optimized and I am invoking the binary from Host using momentics.

However BSP we got from QNX foundry for OMAP3530 Mistral board is with version 6.4.1(I have rebuilt the BSP with 
momentics 6.5.0 version) but the host is running QNX 6.5.0 version.

Do you have any idea when will the QNX be releasing BSP 6.5.0 ?
Re: Issue while debugging  
AFAIK, you should be fine with 6.4.1 BSP, but you can ask on the BSP
forum.

As for the gdb following wrong paths, if they are conditional
compilation, then double check if you are compiling what you think you
are; if a piece or code is conditionally compiled in/out, then GDB can
not possibly change that.

Try preprocessing file containing that code and see if you have the
right defines. If you compiled your code with -g3, you should also be
able to examine macros using
(gdb) info macro <name>



On Tue, 2010-09-28 at 08:36 -0400, Girisha SG wrote:
> Code is not optimized and I am invoking the binary from Host using momentics.
> 
> However BSP we got from QNX foundry for OMAP3530 Mistral board is with version 6.4.1(I have rebuilt the BSP with 
momentics 6.5.0 version) but the host is running QNX 6.5.0 version.
> 
> Do you have any idea when will the QNX be releasing BSP 6.5.0 ?
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post68734
>