home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!concert!sas!mozart.unx.sas.com!jamie
- From: jamie@cdevil.unx.sas.com (James Cooper)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Programming Tools (was: Amiga programmers UNITE)
- Message-ID: <BtC8Fs.74F@unx.sas.com>
- Date: 21 Aug 92 14:33:27 GMT
- References: <1992Aug04.235557.26121@NeoSoft.com> <56478@mentor.cc.purdue.edu> <1992Aug10.223432.27395@CS.ORST.EDU> <piet.025y@okapi.sub.org> <fgd3.01p9@nifty.UUCP>
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Organization: SAS Institute Inc.
- Lines: 37
- Originator: jamie@cdevil.unx.sas.com
- Nntp-Posting-Host: cdevil.unx.sas.com
-
-
- In article <fgd3.01p9@nifty.UUCP>, fgd3@nifty.UUCP (Fabbian G. Dufoe, III) writes:
- >In article <piet.025y@okapi.sub.org> piet@okapi.sub.org (Peter Vohmann) writes:
- >>Have you ever used CodeProbe (SAS/C debugger)? It does a lot of the things
- >>you mentioned (except the guarantee). Yesterday again I stepped through my
- >>assembler code with cpr, watching the register values I had done. 'Quit'
- >>cleaned everything up nicely, one instruction before the point-of-crash.
- >>So what? ;-)
- >
- > Isn't that a bit of an overstatement? The "Quit" command in CodeProbe
- >doesn't clean up everything--CodeProbe doesn't keep track of the resources
- >you've allocated. It does get you out of the debugger and let you continue
- >what you were doing without a crash. But until you reboot you can't recover
- >the memory you've allocated, free any locks that were left hanging, and so
- >forth.
-
- Actually, CodePRobe can clean up a lot for you, if you set your program
- up "correctly".
-
- If you don't use the -s switch on CPR (nostartup mode), it will call the
- exit() code before it quits. If you have setup your own exit code with
- the ONEXIT() call, the exit() code will call this for you.
-
- In other words, you could have the entire program clean itself up as if
- it had exited normally when you use the QUIT command in CPR.
-
- This will work in Assembly code as well, it you have an _main and an
- _exit. CPR looks for those particular lablels when starting/quitting
- your program.
-
- --
- ---------------
- Jim Cooper
- (jamie@unx.sas.com) bix: jcooper
-
- Any opinions expressed herein are mine (Mine, all mine! Ha, ha, ha!),
- and not necessarily those of my employer.
-