Forums - Problem debugging

7 posts / 0 new
Last post
Problem debugging
phalgunb
Join Date: 6 Oct 14
Posts: 18
Posted: Thu, 2014-10-30 02:01

hi,

I have my test(executable) and library projects in the same workspace and as i have a problem in a function

i tried to debug that particular function. i am able to watch all the variables but a particular watch variable says <value optimized out> so iam unable to watch that variable.

Could you please help me out.

thanks and regards,

phalgun

  • Up0
  • Down0
Himateja Reddy
Join Date: 22 Aug 14
Posts: 9
Posted: Thu, 2014-10-30 03:13

Hi Phalgun,

 

                You might have compiled with -O3 and the value might have been optimized out, if there is any redundancy.

                Compile with -O0 and try to debug and watch the variable.

 

Thanks & Regards,

Himateja

  • Up0
  • Down0
phalgunb
Join Date: 6 Oct 14
Posts: 18
Posted: Thu, 2014-10-30 03:38

hi himatej,

It is in -O0 optimization. but still the problem exists.

thanks,

phalgun

  • Up0
  • Down0
Himateja Reddy
Join Date: 22 Aug 14
Posts: 9
Posted: Thu, 2014-10-30 04:38

Hi Phalgun.

 

               Please check both library and at file level , if you are building with -O0 option.

 

Thanks & Regards,

Himateja

  • Up0
  • Down0
phalgunb
Join Date: 6 Oct 14
Posts: 18
Posted: Thu, 2014-10-30 05:35

Yes both are in -O0 and no the value is constant  at ' 0' even though i do some multiply and accumulate operation.

 

thanks

  • Up0
  • Down0
Himateja Reddy
Join Date: 22 Aug 14
Posts: 9
Posted: Fri, 2014-10-31 03:28

Hi Phalgun,

          Can you please send the complete log of build(make or eclipse).

 

Thanks & Regards,

Himateja

  • Up0
  • Down0
Re: Problem debugging Best Answer
phalgunb
Join Date: 6 Oct 14
Posts: 18
Posted: Sat, 2014-11-01 03:18

hey himatej,

it is working now. Thanks a lot. 

regards,

phalgun

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.