tinyvm/tdb
Joseph Kogut ca87b3c5e9 Refactor with a consistent coding style
This commit refactors the project using a single, consistent coding
style, derived from the Linux Kernel Coding Style, available here:

https://www.kernel.org/doc/Documentation/CodingStyle

This includes, but is not limited to:
* Removal of typedefs, especially for structs
* Limiting lines to a reasonable length, 80 characters, mostly
* K&R style braces
* Removal of CamelCase
2016-08-28 20:31:12 -07:00
..
main.c Refactor with a consistent coding style 2016-08-28 20:31:12 -07:00
README Improve, debug, document tdb 2011-12-07 15:55:22 -05:00
tdb.c Refactor with a consistent coding style 2016-08-28 20:31:12 -07:00
tdb.h Refactor with a consistent coding style 2016-08-28 20:31:12 -07:00
tdb_breakpoint.h Refactor with a consistent coding style 2016-08-28 20:31:12 -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.