Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Nick Newsgroups: scee.yaroze.beginners Subject: Re: static and non stativ viods Date: Fri, 12 Jun 1998 21:23:38 -0700 Organization: SCEA News Server Lines: 13 Message-ID: <3581FEC6.7503@home.com> References: <357A494B.2A9A@virgin.net> <357BA719.952E2157@scee.sony.co.uk> <357c78dd.24235428@news.scea.sony.com> Reply-To: porcino@home.com NNTP-Posting-Host: cs1000396-a.gvob1.bc.wave.home.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01-C-SYMPA (Macintosh; I; PPC) Rubbish in a codewarrior stack display is usually a result of registers being unavailable due to inlining. If you turn off all your optimizations, all the variables become valid. When I'm debugging an optimized build, I usually bring up the register display window, and switch the IDE to the Mixed Source/Assembly mode so I can see what registers are actually in use. Another reason you might get rubbish in a stack crawl is when a function has been inlined because in that case there is no stack context to display. It would probably be better if the values greyed out and displayed ??? instead, but oh well. -nick