Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!ucbcad!ucbvax!RAND-UNIX.ARPA!bridger%rcc From: bridger%rcc@RAND-UNIX.ARPA (Bridger Mitchell) Newsgroups: comp.os.cpm Subject: Debugging an RSX Message-ID: <8801081907.AA25284@newton.arpa> Date: 8 Jan 88 19:06:51 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 29 Most debuggers use the bdos (rather than the bios) for terminal input/output, so the first thing you have to do is avoid re-entering the bdos when you are tracing/trapping. You might try this approach under the debugger: 5: jmp rsx_entry 100: program: ... xx: call 5 ;bdos call at routine causing trouble ... Change the 'call 5' to 'call rsx_entry'. Set breakpoints at 0000, the program's exit routine, and xx. Set up command line and execute from 100. When you hit the xx trap, set other breakpoints in the rsx at important spots, then single-step into the rsx to watch things. You can get symbols for the rsx by assembling it once with origin == rsx_entry and loading that symbol file under the debugger. Some debuggers will cummulate symbols from several files, so you can also load symbols from the transient program if you have them. If you do much debugging, you may want to patch the debugger to use bios i/o. --bridger