-
Notifications
You must be signed in to change notification settings - Fork 1
/
prun.cpp
39 lines (32 loc) · 918 Bytes
/
prun.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <stdio.h>
#include "pmachine.h"
#include "debugger.h"
#include <assert.h>
#include "debugger.h"
debugger_t *Debugger;
// We don't link in the debugger class; instead, we define the
// class here to be a set of do-nothing methods. Use the pm -d
// command for symbolic debugging, as prun has no access to the
// symbol table at present.
debugger_t::debugger_t() { }
pword_t debugger_t::ScopeIdx() { return 0; }
void debugger_t::EnterScope(pword_t sidx) { }
void debugger_t::ExitScope() { }
void debugger_t::SourceLine(pword_t ln) { }
void debugger_t::Paginate(char *source) { }
void debugger_t::ShowSource(int ln, int cnt) { }
int debugger_t::GetCommand() { }
static void useage()
{
fprintf(stderr, "Useage: prun\n");
exit(-1);
}
main(int argc, char *argv[])
{
Debugger = NULL;
if (argc!=1) useage();
pmachine_t *tim = new pmachine_t;
tim->LoadAndGo("pm.cod");
delete tim;
return 0;
}