expose debugger functions
This commit is contained in:
parent
0ac0f71fc0
commit
bfc8d1a786
6
debug.c
6
debug.c
|
@ -1,9 +1,10 @@
|
|||
/* picoc interactive debugger */
|
||||
#include "interpreter.h"
|
||||
|
||||
|
||||
#define BREAKPOINT_HASH(p) (((unsigned long)(p)->FileName) ^ (((p)->Line << 16) | ((p)->CharacterPos << 16)))
|
||||
|
||||
#ifdef DEBUGGER
|
||||
|
||||
/* initialise the debugger by clearing the breakpoint table */
|
||||
void DebugInit(Picoc *pc)
|
||||
{
|
||||
|
@ -121,7 +122,6 @@ void DebugCheckStatement(struct ParseState *Parser)
|
|||
}
|
||||
}
|
||||
|
||||
void DebugStep()
|
||||
void DebugStep(void)
|
||||
{
|
||||
}
|
||||
#endif /* DEBUGGER */
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/* picoc main header file - this has all the main data structures and
|
||||
* function prototypes. If you're just calling picoc you should look at the
|
||||
* external interface instead, in picoc.h */
|
||||
|
||||
#ifndef INTERPRETER_H
|
||||
#define INTERPRETER_H
|
||||
|
||||
|
@ -665,12 +664,13 @@ extern void IncludeFile(Picoc *pc, char *Filename);
|
|||
/* the following is defined in picoc.h:
|
||||
* void PicocIncludeAllSystemHeaders(); */
|
||||
|
||||
#ifdef DEBUGGER
|
||||
/* debug.c */
|
||||
extern void DebugInit(Picoc *pc);
|
||||
extern void DebugCleanup(Picoc *pc);
|
||||
extern void DebugCheckStatement(struct ParseState *Parser);
|
||||
#endif
|
||||
extern void DebugSetBreakpoint(struct ParseState *Parser);
|
||||
extern int DebugClearBreakpoint(struct ParseState *Parser);
|
||||
extern void DebugStep(void);
|
||||
|
||||
/* stdio.c */
|
||||
extern const char StdioDefs[];
|
||||
|
|
Loading…
Reference in a new issue