DSPRelated.com
Forums

CCS issues to watch local variables

Started by rena...@gmail.com June 16, 2009
Hi there:

I have difficulty to watch the value of a local varible using CCS. In the build option, I enable "Full Symbolic Debug". Disable all the opt options. Then I put a breakpoint at the place where I want the program to stop. However, when it stops, the local variables are not shown in the watch locals window. Even I add them in the watch window, it will tell me that my input is invalid and the identifier not found.

I still can get the local variable value in the main function. This only happened when I try to debug inside some function I called during the main.

I am wondering what i should do so that I can track the value of the local variables.

Thank you for any suggestions

Renaissance

_____________________________________
Renaissance,

If the 'local variables' are located in the main() function, then they are not
'local' to any sub function. That is why the watch window cannot see them.

However, given the above, you can capture the address in the stack of the main()
local variables and have the watch window display that address, you can then
tell the watch window the appropriate format for the variable (float/int/etc).

Cavet: The main() local variables are not changing when in a sub function.

R. Williams

---------- Original Message -----------
From: r...@gmail.com
To: c...
Sent: Tue, 16 Jun 2009 17:12:58 -0400
Subject: [c6x] CCS issues to watch local variables

> Hi there:
>
> I have difficulty to watch the value of a local varible using CCS. In
> the build option, I enable "Full Symbolic Debug". Disable all the opt
> options. Then I put a breakpoint at the place where I want the program
> to stop. However, when it stops, the local variables are not shown in
> the watch locals window. Even I add them in the watch window, it will
> tell me that my input is invalid and the identifier not found.
>
> I still can get the local variable value in the main function. This
> only happened when I try to debug inside some function I called during
> the main.
>
> I am wondering what i should do so that I can track the value of the
> local variables.
>
> Thank you for any suggestions
>
> Renaissance
------- End of Original Message -------

_____________________________________
Hi Richard:

Thank you for your reply.
I think my post may be a little confusing. Here is what I intended to
explain in my previous post.

In the main function, I can watch the variable defined in main function.
In the called function, I can not watch the variable defined in this
function (local to this function only), which are not from the main
function.

Thank you

Renaissance

----- Original Message -----
From: "Richard Williams"
To: ;
Sent: Tuesday, June 16, 2009 11:45 PM
Subject: Re: [c6x] CCS issues to watch local variables
> Renaissance,
>
> If the 'local variables' are located in the main() function, then they are
> not
> 'local' to any sub function. That is why the watch window cannot see
> them.
>
> However, given the above, you can capture the address in the stack of the
> main()
> local variables and have the watch window display that address, you can
> then
> tell the watch window the appropriate format for the variable
> (float/int/etc).
>
> Cavet: The main() local variables are not changing when in a sub function.
>
> R. Williams
>
> ---------- Original Message -----------
> From: r...@gmail.com
> To: c...
> Sent: Tue, 16 Jun 2009 17:12:58 -0400
> Subject: [c6x] CCS issues to watch local variables
>
>> Hi there:
>>
>> I have difficulty to watch the value of a local varible using CCS. In
>> the build option, I enable "Full Symbolic Debug". Disable all the opt
>> options. Then I put a breakpoint at the place where I want the program
>> to stop. However, when it stops, the local variables are not shown in
>> the watch locals window. Even I add them in the watch window, it will
>> tell me that my input is invalid and the identifier not found.
>>
>> I still can get the local variable value in the main function. This
>> only happened when I try to debug inside some function I called during
>> the main.
>>
>> I am wondering what i should do so that I can track the value of the
>> local variables.
>>
>> Thank you for any suggestions
>>
>> Renaissance
> ------- End of Original Message -------
>

_____________________________________
Hi,
If you are trying to watch local variables of called function; they will be
visible when you halt in that function. Even if you add these local variables
of called function they will show message as identifier not found until you
halt in the function. As you halt in the function at a break point watch window
will show the values of variables.

-Ruturaj.

----- Original Message -----
From: r...@gmail.com
To: c...
Sent: Wednesday, June 17, 2009 2:42 AM
Subject: [c6x] CCS issues to watch local variables

Hi there:

I have difficulty to watch the value of a local varible using CCS. In the build option, I enable "Full Symbolic Debug". Disable all the opt options. Then I put a breakpoint at the place where I want the program to stop. However, when it stops, the local variables are not shown in the watch locals window. Even I add them in the watch window, it will tell me that my input is invalid and the identifier not found.

I still can get the local variable value in the main function. This only happened when I try to debug inside some function I called during the main.

I am wondering what i should do so that I can track the value of the local variables.

Thank you for any suggestions

Renaissance

____________________________________________________________________________________________

Disclaimer: This E-Mail (including attached documents) may contain proprietary and / or confidential and/or legally privileged Information and is meant for the intended recipient(s) only. If you have received this e-mail in error and are not the intended recipient/s, kindly notify us at a...@dbups.co.in and then delete this e-mail immediately from your system. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail, its contents or its attachment/s other than by its intended recipient/s is strictly prohibited and may be unlawful. Internet Communications cannot be guaranteed to be secure or error-free as information could be delayed, intercepted, corrupted, lost, or contain viruses. DB Power Electronics (P) Ltd. does not accept any liability for any errors, omissions, viruses or computer problems experienced by any recipient as a result of this e-mail.
DB Power Electronics (P) Ltd.
120/37, Ramtekdi Industrial Area, Hadapsar, Pune 411013. (INDIA)
Hi Ruturaj:

Thank you for your reply.

I use a breakpoint to halt the program inside the function and that is what I am doing to watch the local.

A little update. I use another project, which is much simpler than the this one. I can get the local variable values during debug. This is really strange.

Thank you,

Renaissance

----- Original Message -----
From: Ruturaj
To: r...@gmail.com ; c...
Sent: Tuesday, June 16, 2009 8:16 PM
Subject: Re: [c6x] CCS issues to watch local variables
Hi,
If you are trying to watch local variables of called function; they will be
visible when you halt in that function. Even if you add these local variables
of called function they will show message as identifier not found until you
halt in the function. As you halt in the function at a break point watch window
will show the values of variables.

-Ruturaj.

----- Original Message -----
From: r...@gmail.com
To: c...
Sent: Wednesday, June 17, 2009 2:42 AM
Subject: [c6x] CCS issues to watch local variables

Hi there:

I have difficulty to watch the value of a local varible using CCS. In the build option, I enable "Full Symbolic Debug". Disable all the opt options. Then I put a breakpoint at the place where I want the program to stop. However, when it stops, the local variables are not shown in the watch locals window. Even I add them in the watch window, it will tell me that my input is invalid and the identifier not found.

I still can get the local variable value in the main function. This only happened when I try to debug inside some function I called during the main.

I am wondering what i should do so that I can track the value of the local variables.

Thank you for any suggestions

Renaissance

____________________________________________________________________________________________

Disclaimer: This E-Mail (including attached documents) may contain proprietary and / or confidential and/or legally privileged Information and is meant for the intended recipient(s) only. If you have received this e-mail in error and are not the intended recipient/s, kindly notify us at a...@dbups.co.in and then delete this e-mail immediately from your system. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail, its contents or its attachment/s other than by its intended recipient/s is strictly prohibited and may be unlawful. Internet Communications cannot be guaranteed to be secure or error-free as information could be delayed, intercepted, corrupted, lost, or contain viruses. DB Power Electronics (P) Ltd. does not accept any liability for any errors, omissions, viruses or computer problems experienced by any recipient as a result of this e-mail.
DB Power Electronics (P) Ltd.
120/37, Ramtekdi Industrial Area, Hadapsar, Pune 411013. (INDIA)
Ren,

Thanks for the clarification.

Please post a copy of the function that is giving you the problems.

R. Williams

---------- Original Message -----------
From: "Renaissance1975 - Gmail"
To: "Richard Williams" ,
Sent: Wed, 17 Jun 2009 09:16:23 -0700
Subject: Re: [c6x] CCS issues to watch local variables

> Hi Richard:
>
> Thank you for your reply.
> I think my post may be a little confusing. Here is what I intended to
> explain in my previous post.
>
> In the main function, I can watch the variable defined in main
> function. In the called function, I can not watch the variable defined
> in this function (local to this function only), which are not from the
> main function.
>
> Thank you
>
> Renaissance
>
> ----- Original Message -----
> From: "Richard Williams"
> To: ;
> Sent: Tuesday, June 16, 2009 11:45 PM
> Subject: Re: [c6x] CCS issues to watch local variables
>
> > Renaissance,
> >
> > If the 'local variables' are located in the main() function, then they are
> > not
> > 'local' to any sub function. That is why the watch window cannot see
> > them.
> >
> > However, given the above, you can capture the address in the stack of the
> > main()
> > local variables and have the watch window display that address, you can
> > then
> > tell the watch window the appropriate format for the variable
> > (float/int/etc).
> >
> > Cavet: The main() local variables are not changing when in a sub function.
> >
> > R. Williams
> >
> >
> >
> > ---------- Original Message -----------
> > From: r...@gmail.com
> > To: c...
> > Sent: Tue, 16 Jun 2009 17:12:58 -0400
> > Subject: [c6x] CCS issues to watch local variables
> >
> >> Hi there:
> >>
> >> I have difficulty to watch the value of a local varible using CCS. In
> >> the build option, I enable "Full Symbolic Debug". Disable all the opt
> >> options. Then I put a breakpoint at the place where I want the program
> >> to stop. However, when it stops, the local variables are not shown in
> >> the watch locals window. Even I add them in the watch window, it will
> >> tell me that my input is invalid and the identifier not found.
> >>
> >> I still can get the local variable value in the main function. This
> >> only happened when I try to debug inside some function I called during
> >> the main.
> >>
> >> I am wondering what i should do so that I can track the value of the
> >> local variables.
> >>
> >> Thank you for any suggestions
> >>
> >> Renaissance
> > ------- End of Original Message -------
> >
------- End of Original Message -------

_____________________________________
Hi Ren,
As local variables are stored on stack; there could be problem of stack size.
It is just a guess, as you said simple project is giving debug values.

-Ruturaj.

----- Original Message -----
From: Renaissance1975 - Gmail
To: Ruturaj ; c...
Sent: Wednesday, June 17, 2009 9:41 PM
Subject: Re: [c6x] CCS issues to watch local variables

Hi Ruturaj:

Thank you for your reply.

I use a breakpoint to halt the program inside the function and that is what I am doing to watch the local.

A little update. I use another project, which is much simpler than the this one. I can get the local variable values during debug. This is really strange.

Thank you,

Renaissance

----- Original Message -----
From: Ruturaj
To: r...@gmail.com ; c...
Sent: Tuesday, June 16, 2009 8:16 PM
Subject: Re: [c6x] CCS issues to watch local variables
Hi,
If you are trying to watch local variables of called function; they will be
visible when you halt in that function. Even if you add these local variables
of called function they will show message as identifier not found until you
halt in the function. As you halt in the function at a break point watch window
will show the values of variables.

-Ruturaj.

----- Original Message -----
From: r...@gmail.com
To: c...
Sent: Wednesday, June 17, 2009 2:42 AM
Subject: [c6x] CCS issues to watch local variables
Hi there:

I have difficulty to watch the value of a local varible using CCS. In the build option, I enable "Full Symbolic Debug". Disable all the opt options. Then I put a breakpoint at the place where I want the program to stop. However, when it stops, the local variables are not shown in the watch locals window. Even I add them in the watch window, it will tell me that my input is invalid and the identifier not found.

I still can get the local variable value in the main function. This only happened when I try to debug inside some function I called during the main.

I am wondering what i should do so that I can track the value of the local variables.

Thank you for any suggestions

Renaissance

____________________________________________________________________________________________

Disclaimer: This E-Mail (including attached documents) may contain proprietary and / or confidential and/or legally privileged Information and is meant for the intended recipient(s) only. If you have received this e-mail in error and are not the intended recipient/s, kindly notify us at a...@dbups.co.in and then delete this e-mail immediately from your system. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail, its contents or its attachment/s other than by its intended recipient/s is strictly prohibited and may be unlawful. Internet Communications cannot be guaranteed to be secure or error-free as information could be delayed, intercepted, corrupted, lost, or contain viruses. DB Power Electronics (P) Ltd. does not accept any liability for any errors, omissions, viruses or computer problems experienced by any recipient as a result of this e-mail.
DB Power Electronics (P) Ltd.
120/37, Ramtekdi Industrial Area, Hadapsar, Pune 411013. (INDIA)

____________________________________________________________________________________________

Disclaimer: This E-Mail (including attached documents) may contain proprietary and / or confidential and/or legally privileged Information and is meant for the intended recipient(s) only. If you have received this e-mail in error and are not the intended recipient/s, kindly notify us at a...@dbups.co.in and then delete this e-mail immediately from your system. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail, its contents or its attachment/s other than by its intended recipient/s is strictly prohibited and may be unlawful. Internet Communications cannot be guaranteed to be secure or error-free as information could be delayed, intercepted, corrupted, lost, or contain viruses. DB Power Electronics (P) Ltd. does not accept any liability for any errors, omissions, viruses or computer problems experienced by any recipient as a result of this e-mail.
DB Power Electronics (P) Ltd.
120/37, Ramtekdi Industrial Area, Hadapsar, Pune 411013. (INDIA)
I would look at how much stack you are allocating. I think I've seen cases
when I was running close to the total amount of allocated stack being used
that the debugger didn't display stack variables correctly. If you've got
enough ram on your platform, increasing the stack by at least 1024 bytes may
be worth a try.

Wim.

On Wed, Jun 17, 2009 at 9:11 AM, Renaissance1975 - Gmail <
r...@gmail.com> wrote:

> Hi Ruturaj:
>
> Thank you for your reply.
>
> I use a breakpoint to halt the program inside the function and that is what
> I am doing to watch the local.
>
> A little update. I use another project, which is much simpler than the this
> one. I can get the local variable values during debug. This is really
> strange.
>
> Thank you,
>
> Renaissance
> ----- Original Message -----
> *From:* Ruturaj
> *To:* r...@gmail.com ; c...
> *Sent:* Tuesday, June 16, 2009 8:16 PM
> *Subject:* Re: [c6x] CCS issues to watch local variables
>
> Hi,
> If you are trying to watch local variables of called function; they will
> be
> visible when you halt in that function. Even if you add these local
> variables
> of called function they will show message as identifier not found until you
> halt in the function. As you halt in the function at a break point watch
> window
> will show the values of variables.
>
> -Ruturaj.
> ----- Original Message -----
> *From:* r...@gmail.com
> *To:* c...
> *Sent:* Wednesday, June 17, 2009 2:42 AM
> *Subject:* [c6x] CCS issues to watch local variables
>
> Hi there:
>
> I have difficulty to watch the value of a local varible using CCS. In the
> build option, I enable "Full Symbolic Debug". Disable all the opt options.
> Then I put a breakpoint at the place where I want the program to stop.
> However, when it stops, the local variables are not shown in the watch
> locals window. Even I add them in the watch window, it will tell me that my
> input is invalid and the identifier not found.
>
> I still can get the local variable value in the main function. This only
> happened when I try to debug inside some function I called during the main.
>
> I am wondering what i should do so that I can track the value of the local
> variables.
>
> Thank you for any suggestions
>
> Renaissance
>
> ____________________________________________________________________________________________
>
> Disclaimer: This E-Mail (including attached documents) may contain proprietary and / or confidential and/or legally privileged Information and is meant for the intended recipient(s) only. If you have received this e-mail in error and are not the intended recipient/s, kindly notify us at a...@dbups.co.in and then delete this e-mail immediately from your system. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail, its contents or its attachment/s other than by its intended recipient/s is strictly prohibited and may be unlawful. Internet Communications cannot be guaranteed to be secure or error-free as information could be delayed, intercepted, corrupted, lost, or contain viruses. DB Power Electronics (P) Ltd. does not accept any liability for any errors, omissions, viruses or computer problems experienced by any recipient as a result of this e-mail.
> DB Power Electronics (P) Ltd.
> 120/37, Ramtekdi Industrial Area, Hadapsar, Pune 411013. (INDIA)
>
>
>
Ren,

Your original message stated that you could not see the main() function local
variables when in a sub function.

I told you how to get around that problem by using a hard address to locate the
variable.

R. Williams

---------- Original Message -----------
From: "Renaissance1975 - Gmail"
To: "Ruturaj" ,
Sent: Wed, 17 Jun 2009 09:11:21 -0700
Subject: Re: [c6x] CCS issues to watch local variables

> Hi Ruturaj:
>
> Thank you for your reply.
>
> I use a breakpoint to halt the program inside the function and that is
> what I am doing to watch the local.
>
> A little update. I use another project, which is much simpler than the
> this one. I can get the local variable values during debug. This is
> really strange.
>
> Thank you,
>
> Renaissance
>
> ----- Original Message -----
> From: Ruturaj
> To: r...@gmail.com ; c...
> Sent: Tuesday, June 16, 2009 8:16 PM
> Subject: Re: [c6x] CCS issues to watch local variables
>
> Hi,
> If you are trying to watch local variables of called function;
> they will be visible when you halt in that function. Even if you add
> these local variables of called function they will show message as
> identifier not found until you halt in the function. As you halt in
> the function at a break point watch window will show the values of variables.
>
> -Ruturaj.
>
> ----- Original Message -----
> From: r...@gmail.com
> To: c...
> Sent: Wednesday, June 17, 2009 2:42 AM
> Subject: [c6x] CCS issues to watch local variables
>
> Hi there:
>
> I have difficulty to watch the value of a local varible using CCS.
> In the build option, I enable "Full Symbolic Debug". Disable all the
> opt options. Then I put a breakpoint at the place where I want the
> program to stop. However, when it stops, the local variables are not
> shown in the watch locals window. Even I add them in the watch window,
> it will tell me that my input is invalid and the identifier not found.
>
> I still can get the local variable value in the main function.
> This only happened when I try to debug inside some function I called
> during the main.
>
> I am wondering what i should do so that I can track the value of
> the local variables.
>
> Thank you for any suggestions
>
> Renaissance
____________________________________________________________________________________________
>
> Disclaimer: This E-Mail (including attached documents) may contain
> proprietary and / or confidential and/or legally privileged
> Information and is meant for the intended recipient(s) only. If you
> have received this e-mail in error and are not the intended
> recipient/s, kindly notify us at a...@dbups.co.in and then delete
> this e-mail immediately from your system. You are also hereby notified
> that any use, any form of reproduction, dissemination, copying,
> disclosure, modification, distribution and/or publication of this e-
> mail, its contents or its attachment/s other than by its intended
> recipient/s is strictly prohibited and may be unlawful. Internet
> Communications cannot be guaranteed to be secure or error-free as
> information could be delayed, intercepted, corrupted, lost, or contain
> viruses. DB Power Electronics (P) Ltd. does not accept any liability
> for any errors, omissions, viruses or computer problems experienced by
> any recipient as a result of this e-mail. DB Power Electronics (P)
> Ltd. 120/37, Ramtekdi Industrial Area, Hadapsar, Pune 411013. (INDIA)
------- End of Original Message -------

_____________________________________
I never modify the stack size before. Can you give me a hint on how to adjust the size of stack in CCS?

I just found in the Build Options, in the Linker Tab, there is a setting for Stack Size. But how could I know the current stack size, so that I can use a larger setting?

Thank you
Hi there:
>
>I have difficulty to watch the value of a local varible using CCS. In the build option, I enable "Full Symbolic Debug". Disable all the opt options. Then I put a breakpoint at the place where I want the program to stop. However, when it stops, the local variables are not shown in the watch locals window. Even I add them in the watch window, it will tell me that my input is invalid and the identifier not found.
>
>I still can get the local variable value in the main function. This only happened when I try to debug inside some function I called during the main.
>
>I am wondering what i should do so that I can track the value of the local variables.
>
>Thank you for any suggestions
>
>Renaissance
>
>_____________________________________

_____________________________________