* debugger/mcs51/break.c,
[fw/sdcc] / debugger / mcs51 / symtab.c
index 6d12e577917c745c4f436218e2e5060975cb7574..7c14aa89fcde8af797696d8b9bc567266c948223 100644 (file)
@@ -261,7 +261,7 @@ symbol *parseSymbol (char *s, char **rs, int doadd)
         if ( applyToSetFTrue(symbols,symWithRName,s,&nsym))
         {
             if ( nsym->rname != nsym->name )
-                return;
+                return NULL;
             doadd = 0;
         }
     }
@@ -712,7 +712,7 @@ static void lnkCSrc (char *s)
     module *mod ;
 
     /* input will be of format
-       filename.ext$<level>$<block>$<line>:<address> */
+       filename.ext$<line>$<level>$<block>:<address> */
     /* get the module name */
     while (*s != '$' )
   *bp++ = *s++;
@@ -738,7 +738,7 @@ static void lnkCSrc (char *s)
         ( !mod->cLines[line]->addr ||
         mod->cLines[line]->level > level )*/ ) 
     {
-        if ( mod->cLines[line]->addr )
+        if ( mod->cLines[line]->addr != INT_MAX )
         {
             /* save double line information for exepoints */
             exePoint *ep ;