Hello, I am using cc2.00. I have a question regarding the c54x simulator debugger. When I tried to step through my code and to look at variable values, it showed zeros all the time. Can anyone tell me what I have missed? Thanks. Li ======================================== Li Hao Vertical Networks 1148 Arques Ave. Sunnyvale, CA 94085 |
|
debugger doesn't display variable values
Started by ●February 13, 2002
Reply by ●February 15, 20022002-02-15
Li, Make sure you are using the -g debug option, try viewing the variables in a watch window and step to see them change. /* test */ int i; main() { int a=0; for (i=0; i<10; i++) { a = a + 1; } } When I run this a increments nicely! - Mike -----Original Message----- From: Li Hao [mailto:] Sent: Wednesday, February 13, 2002 2:26 PM To: ' Subject: [code-comp] debugger doesn't display variable values Hello, I am using cc2.00. I have a question regarding the c54x simulator debugger. When I tried to step through my code and to look at variable values, it showed zeros all the time. Can anyone tell me what I have missed? Thanks. Li ======================================== Li Hao Vertical Networks 1148 Arques Ave. Sunnyvale, CA 94085 <http://rd.yahoo.com/M!8512.1856015.3360178.1269402/D=egroupweb/S050047 26:HM/A8901/R=0/*http://ad.doubleclick.net/clk;3788034;6800959;v%3fhttp:/ /www.verisign.com/cgi-bin/go.cgi?a28473240057000> <http://us.adserver.yahoo.com/l?M!8512.1856015.3360178.1269402/D=egroupmai l/S05004726:HM/A8901/randI4520274> _____________________________________ Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. _____________________________________ About this discussion group: To Join: To Post: To Leave: Archives: http://www.yahoogroups.com/group/code-comp <http://www.yahoogroups.com/group/code-comp> More Groups: http://www.dsprelated.com <http://www.dsprelated.com ">http://docs.yahoo.com/info/terms/> . |
Reply by ●February 15, 20022002-02-15
Thanks Mike for answering. I did turn on -g option, also I checked memory mapping. Everything looks ok. It is bizzare. I am running NT, it might have something to do with some other software I have. Li -----Original Message----- From: Beiriger, Mike [mailto:] Sent: Friday, February 15, 2002 8:27 AM To: Li Hao; ' Subject: RE: [code-comp] debugger doesn't display variable values Li, Make sure you are using the -g debug option, try viewing the variables in a watch window and step to see them change. /* test */ int i; main() { int a=0; for (i=0; i<10; i++) { a = a + 1; } } When I run this a increments nicely! - Mike -----Original Message----- From: Li Hao [mailto:] Sent: Wednesday, February 13, 2002 2:26 PM To: ' Subject: [code-comp] debugger doesn't display variable values Hello, I am using cc2.00. I have a question regarding the c54x simulator debugger. When I tried to step through my code and to look at variable values, it showed zeros all the time. Can anyone tell me what I have missed? Thanks. Li ======================================== Li Hao Vertical Networks 1148 Arques Ave. Sunnyvale, CA 94085 <http://rd.yahoo.com/M!8512.1856015.3360178.1269402/D=egroupweb/S050047 26:HM/A8901/R=0/*http://ad.doubleclick.net/clk;3788034;6800959;v%3fhttp:/ /www.verisign.com/cgi-bin/go.cgi?a28473240057000> <http://us.adserver.yahoo.com/l?M!8512.1856015.3360178.1269402/D=egroupmai l/S05004726:HM/A8901/randI4520274> _____________________________________ Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. _____________________________________ About this discussion group: To Join: To Post: To Leave: Archives: http://www.yahoogroups.com/group/code-comp <http://www.yahoogroups.com/group/code-comp> More Groups: http://www.dsprelated.com <http://www.dsprelated.com ">http://docs.yahoo.com/info/terms/> . |
|
Reply by ●February 18, 20022002-02-18
Try turning of the optimization. Many times variables disappear in complilation during optimization. So code composer doesn't show any change for them in the watch window. regards Piyush --- Li Hao <> wrote: > Thanks Mike for answering. I did turn on -g option, > also I checked memory > mapping. Everything looks ok. It is bizzare. I am > running NT, it might have > something to do with some other software I have. > Li > -----Original Message----- > From: Beiriger, Mike [mailto:] > Sent: Friday, February 15, 2002 8:27 AM > To: Li Hao; ' > Subject: RE: [code-comp] debugger doesn't display > variable values > Li, > > Make sure you are using the -g debug option, try > viewing the variables in a > watch window and step to see them change. > > /* test */ > > int i; > > main() > { > > int a=0; > > for (i=0; i<10; i++) > { > a = a + 1; > } > > } > > When I run this a increments nicely! > > - Mike > > -----Original Message----- > From: Li Hao [mailto:] > Sent: Wednesday, February 13, 2002 2:26 PM > To: ' > Subject: [code-comp] debugger doesn't display > variable values > Hello, I am using cc2.00. I have a question > regarding the c54x simulator > debugger. When I tried to step through my code and > to look at variable > values, it showed zeros all the time. Can anyone > tell me what I have missed? > > Thanks. > > Li > ======================================== > Li Hao > Vertical Networks > 1148 Arques Ave. > Sunnyvale, CA 94085 > > <http://rd.yahoo.com/M!8512.1856015.3360178.1269402/D=egroupweb/S050047 > 26:HM/A8901/R=0/*http://ad.doubleclick.net/clk;3788034;6800959;v%3fhttp:/ > /www.verisign.com/cgi-bin/go.cgi?a28473240057000 > <http://us.adserver.yahoo.com/l?M!8512.1856015.3360178.1269402/D=egroupmai > l/S05004726:HM/A8901/randI4520274> > > _____________________________________ > Note: If you do a simple "reply" with your email > client, only the author of > this message will receive your answer. You need to > do a "reply all" if you > want your answer to be distributed to the entire > group. > > _____________________________________ > About this discussion group: > > To Join: > > To Post: > > To Leave: > > Archives: http://www.yahoogroups.com/group/code-comp > <http://www.yahoogroups.com/group/code-comp> > > More Groups: http://www.dsprelated.com > <http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/> . > ------------------------ Yahoo! Groups Sponsor > > _____________________________________ > Note: If you do a simple "reply" with your email > client, only the author of this message will receive > your answer. You need to do a "reply all" if you > want your answer to be distributed to the entire > group. > > _____________________________________ > About this discussion group: > > To Join: > > To Post: > > To Leave: > > Archives: http://www.yahoogroups.com/group/code-comp > > More Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/ __________________________________________________ |