* device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
[fw/sdcc] / debugger / mcs51 / sdcdb.h
index 80c42627e24d8f2fb270ed18d865fab9c85ce8e6..9e1268e2ab60ece5f5c0061ecc2fd6153832577e 100644 (file)
@@ -105,7 +105,7 @@ typedef short bool;
                               : STACK_PUSH_(stack,x)              )
 
 #define  STACK_POP(stack)     (STACK_EMPTY(stack)                 \
-                              ?((t_##stack)(long)(STACK_ERR(0)))  \
+                              ?((t_##stack) NULL)  \
                               : STACK_POP_(stack)                 )
 
 #define  STACK_PEEK(stack)    (STACK_EMPTY(stack)                 \
@@ -179,6 +179,7 @@ typedef struct module {
     int   nasmLines;         /* # of lines in the assembler file */
     srcLine  **cLines;       /* actual source lines */    
     srcLine  **asmLines;     /* actual assembler source lines*/
+    set       *cfpoints;     /* set of double line execution points */   
 } module;
 
 /*-----------------------------------------------------------------*/
@@ -206,6 +207,8 @@ typedef struct function {
     set       *afpoints     ;/* set of all ASM execution points in func */
     unsigned   int laddr    ;/* last executed address                   */
     int        lline        ;/* last executed linenumber                */
+    unsigned   int stkaddr  ;/* stackpointer at beginning of function
+                              * (not reentrant ! ) only actual */
 } function ;
 
 /*-----------------------------------------------------------------*/
@@ -250,7 +253,8 @@ extern set *symbols  ; /* set of symbols */
 extern set *sfrsymbols;/* set of symbols of sfr or sbit */
 
 extern char *currModName ;
-extern short userinterrupt ;
+extern char userinterrupt ;
+extern char nointerrupt ;
 extern short showfull ;
 extern int nStructs ;
 extern struct structdef **structs ; /* all structures */
@@ -259,8 +263,12 @@ void **resize (void **, int );
 char  *alloccpy(char *,int );
 char *gc_strdup(const char *s);
 srcLine **loadFile (char *name, int *nlines);
+
 extern short fullname;
 extern int srcMode;
+extern char contsim;
 char *searchDirsFname (char *);
-
+char *getNextCmdLine(void );
+void setCmdLine( char * );
+void stopCommandList( void );
 #endif