rewrap debugger functions
This commit is contained in:
parent
bfc8d1a786
commit
96ee5bc665
4
debug.c
4
debug.c
|
@ -1,10 +1,9 @@
|
||||||
/* picoc interactive debugger */
|
/* picoc interactive debugger */
|
||||||
#include "interpreter.h"
|
#include "interpreter.h"
|
||||||
|
|
||||||
|
|
||||||
#define BREAKPOINT_HASH(p) (((unsigned long)(p)->FileName) ^ (((p)->Line << 16) | ((p)->CharacterPos << 16)))
|
#define BREAKPOINT_HASH(p) (((unsigned long)(p)->FileName) ^ (((p)->Line << 16) | ((p)->CharacterPos << 16)))
|
||||||
|
|
||||||
|
#ifdef DEBUGGER
|
||||||
/* initialise the debugger by clearing the breakpoint table */
|
/* initialise the debugger by clearing the breakpoint table */
|
||||||
void DebugInit(Picoc *pc)
|
void DebugInit(Picoc *pc)
|
||||||
{
|
{
|
||||||
|
@ -125,3 +124,4 @@ void DebugCheckStatement(struct ParseState *Parser)
|
||||||
void DebugStep(void)
|
void DebugStep(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#endif /* DEBUGGER */
|
||||||
|
|
|
@ -664,13 +664,15 @@ extern void IncludeFile(Picoc *pc, char *Filename);
|
||||||
/* the following is defined in picoc.h:
|
/* the following is defined in picoc.h:
|
||||||
* void PicocIncludeAllSystemHeaders(); */
|
* void PicocIncludeAllSystemHeaders(); */
|
||||||
|
|
||||||
|
#ifdef DEBUGGER
|
||||||
/* debug.c */
|
/* debug.c */
|
||||||
extern void DebugInit(Picoc *pc);
|
extern void DebugInit(Picoc *pc);
|
||||||
extern void DebugCleanup(Picoc *pc);
|
extern void DebugCleanup(Picoc *pc);
|
||||||
extern void DebugCheckStatement(struct ParseState *Parser);
|
extern void DebugCheckStatement(struct ParseState *Parser);
|
||||||
extern void DebugSetBreakpoint(struct ParseState *Parser);
|
extern void DebugSetBreakpoint(struct ParseState *Parser);
|
||||||
extern int DebugClearBreakpoint(struct ParseState *Parser);
|
extern int DebugClearBreakpoint(struct ParseState *Parser);
|
||||||
extern void DebugStep(void);
|
extern void DebugStep(void)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* stdio.c */
|
/* stdio.c */
|
||||||
extern const char StdioDefs[];
|
extern const char StdioDefs[];
|
||||||
|
|
Loading…
Reference in a new issue