tinyvm/tdb
2013-01-28 21:03:23 -05:00
..
main.c Made pointer syntax in TDB more consistent. 2013-01-25 13:05:51 -07:00
README Improve, debug, document tdb 2011-12-07 15:55:22 -05:00
tdb.c Patch tdb to compile with the new Makefile and gcc 4.6.3 2013-01-28 21:03:23 -05:00
tdb.h Made pointer syntax in TDB more consistent. 2013-01-25 13:05:51 -07:00
tdb_breakpoint.h Made pointer syntax in TDB more consistent. 2013-01-25 13:05:51 -07:00

tdb is a debugging shell for tinyvm programs. It is somewhat similar to gdb.

//////////////////////////////////////////////////
// Table of Contents /////////////////////////////
//////////////////////////////////////////////////
0. INVOCATION
1. COMMANDS

//////////////////////////////////////////////////
// 0. INVOCATION /////////////////////////////////
//////////////////////////////////////////////////

tdb expects a program name as its first argument:

tdb program.vm

//////////////////////////////////////////////////
// 1. COMMANDS ///////////////////////////////////
//////////////////////////////////////////////////

Commands are shown in brackets here; the brackets
must not be typed in.

[break idx]
Set a breakpoint at instruction index idx.

[run]
Run the program until a breakpoint is hit.
(This command can only be issued once.)

[continue]
Resume execution after a breakpoint is hit.

[step]
Execute one instruction and pause. (Ignores breakpoints.)

[q]
Quit tdb.