Source-Level Debug with Crossview

To use the debug Monitor with BSO/Tasking's Crossview, connect the serial port that Crossview will use, to the Monitor's tty0 (the console) on the target board. i.e., Crossview only uses one serial port.

If necessary, use the set command to set your Monitor's prompt to "PMON> ". Crossview is hardwired to expect that string, and will not work with any other value (note the space after the ">").

Compile and link modules with the -g option. This will generate the .abs file that is required by Crossview. For example,

	pmcc -g -o bubble bubble.c
Invoke Crossview,

% xvw3r bubble.abs -i -E /dev/tty1 -S 9600		Unix
C> xvw3r bubble.abs -i -E com1 -S 9600			MSDOS
-- this includes downloading of bubble.abs

xvw> e main		-- view main
xvw> 26 b		-- set bpt at line 26
xvw> R			-- reset target & run

xvw> C [bpt]		-- continue
xvw> S			-- single-step over procedures
xvw> s			-- single-step into procedures
xvw> p->pri		-- display value of p->pri
xvw> B			-- display bpts
xvw> 0 d		-- delete bpt 0
xvw> D			-- delete all bpts
xvw> o [cmd]  		-- enter transparent mode. exit with ^D
xvw> Si/si		-- single step machine instruction
xvw> q			-- quit


Navigation: Document Home | Document Contents | Document Index