G:/ScriptBasic/source/extensions/dbg/interface.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "../../conftree.h"
#include "../../report.h"
#include "../../reader.h"
#include "../../basext.h"
#include "../../prepext.h"
#include "dbg.h"
#include "dbg_comm.h"

Go to the source code of this file.

Defines

#define APPEND(X)

Functions

static void PushStackItem (pDebuggerObject pDO, long Node)
static void PopStackItem (pDebuggerObject pDO)
static char hexi (unsigned int x)
int SPrintVariable (pDebuggerObject pDO, VARIABLE v, char *pszBuffer, unsigned long *cbBuffer)
int SPrintVarByName (pDebuggerObject pDO, pExecuteObject pEo, char *pszName, char *pszBuffer, unsigned long *cbBuffer)
long GetSourceLineNumber (pDebuggerObject pDO, long PC)
long GetCurrentDebugLine (pDebuggerObject pDO)
int MyExecBefore (pExecuteObject pEo)
int MyExecAfter (pExecuteObject pEo)
int MyExecCall (pExecuteObject pEo)
int MyExecReturn (pExecuteObject pEo)
static pDebuggerObject new_DebuggerObject (pPrepext pEXT)
static char * AllocFileName (pPrepext pEXT, char *pszFileName)
static pUserFunction_t AllocUserFunction (pPrepext pEXT, char *pszUserFunction)
void CBF_ListLocalVars (char *pszName, void *pSymbol, void **pv)
void CBF_ListGlobalVars (char *pszName, void *pSymbol, void *pv)
int DLL_EXPORT preproc (pPrepext pEXT, long *pCmd, void *p)


Define Documentation

#define APPEND  ) 
 

Value:

slen = strlen(X);\
                  if( _cbBuffer < slen+1 ){\
                    *cbBuffer += 40;\
                    return 1;\
                    }\
                  strcpy(s,X);\
                  s += slen;\
                  _cbBuffer -= slen;

Referenced by SPrintVariable().


Function Documentation

static char* AllocFileName pPrepext  pEXT,
char *  pszFileName
[static]
 

Definition at line 636 of file interface.c.

References i, memcpy(), NULL, p, and strcpy().

Referenced by preproc().

static pUserFunction_t AllocUserFunction pPrepext  pEXT,
char *  pszUserFunction
[static]
 

Definition at line 660 of file interface.c.

References memcpy(), NULL, p, and strcpy().

void CBF_ListGlobalVars char *  pszName,
void *  pSymbol,
void *  pv
 

Definition at line 694 of file interface.c.

References NULL, and strcpy().

Referenced by preproc().

void CBF_ListLocalVars char *  pszName,
void *  pSymbol,
void **  pv
 

Definition at line 682 of file interface.c.

References NULL, and strcpy().

long GetCurrentDebugLine pDebuggerObject  pDO  ) 
 

Definition at line 435 of file interface.c.

References GetSourceLineNumber(), and NULL.

Referenced by comm_GetCommand(), and MyExecBefore().

long GetSourceLineNumber pDebuggerObject  pDO,
long  PC
 

Definition at line 405 of file interface.c.

References i, j, and pszFileName.

Referenced by GetCurrentDebugLine(), and MyExecBefore().

static char hexi unsigned int  x  )  [static]
 

Definition at line 150 of file interface.c.

Referenced by SPrintVariable().

int MyExecAfter pExecuteObject  pEo  ) 
 

Definition at line 567 of file interface.c.

int MyExecBefore pExecuteObject  pEo  ) 
 

Definition at line 447 of file interface.c.

References comm_GetCommand(), comm_Message(), comm_WeAreAt(), GetCurrentDebugLine(), GetRange(), GetSourceLineNumber(), i, and j.

int MyExecCall pExecuteObject  pEo  ) 
 

Definition at line 577 of file interface.c.

References PushStackItem().

int MyExecReturn pExecuteObject  pEo  ) 
 

Definition at line 589 of file interface.c.

References PopStackItem().

static pDebuggerObject new_DebuggerObject pPrepext  pEXT  )  [static]
 

Definition at line 602 of file interface.c.

References NULL.

Referenced by preproc().

static void PopStackItem pDebuggerObject  pDO  )  [static]
 

Definition at line 136 of file interface.c.

References NULL, and p.

Referenced by MyExecReturn().

int DLL_EXPORT preproc pPrepext  pEXT,
long *  pCmd,
void *  p
 

Definition at line 705 of file interface.c.

References AllocFileName(), CBF_ListGlobalVars(), i, new_DebuggerObject(), NULL, Result, and strcpy().

Referenced by ipreproc_LoadInternalPreprocessor(), and ipreproc_Process().

static void PushStackItem pDebuggerObject  pDO,
long  Node
[static]
 

Definition at line 110 of file interface.c.

References i, NULL, and p.

Referenced by MyExecCall().

int SPrintVarByName pDebuggerObject  pDO,
pExecuteObject  pEo,
char *  pszName,
char *  pszBuffer,
unsigned long *  cbBuffer
 

Definition at line 352 of file interface.c.

References i, s, and SPrintVariable().

Referenced by comm_GetCommand().

int SPrintVariable pDebuggerObject  pDO,
VARIABLE  v,
char *  pszBuffer,
unsigned long *  cbBuffer
 

Definition at line 163 of file interface.c.

References APPEND, buf, hexi(), i, LONGVALUE(), NULL, r, refcount, s, slen, sprintf(), strcpy(), and STRLEN().

Referenced by comm_GetCommand(), and SPrintVarByName().


Generated on Sun Mar 12 23:56:35 2006 for ScriptBasic by  doxygen 1.4.6-NO