X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debugger%2Fmcs51%2Fsdcdb.c;h=267dc7f201201a1e3a7a88c835bbb3ea185bf965;hb=429042fc5748400ac907d45c1c223056568ce0e4;hp=4a406fb1dffe776124810e76dc8979c32d2e7ae2;hpb=7bd65e1fe4f20a1fbfd8efee29982849824704bd;p=fw%2Fsdcc diff --git a/debugger/mcs51/sdcdb.c b/debugger/mcs51/sdcdb.c index 4a406fb1..267dc7f2 100644 --- a/debugger/mcs51/sdcdb.c +++ b/debugger/mcs51/sdcdb.c @@ -558,17 +558,19 @@ int cmdFile (char *s,context *cctxt) sprintf(buffer,"%s.cdb",s); /* try creating the cdbfile */ if (!(cdbFile = searchDirsFopen(buffer))) { - fprintf(stdout,"Cannot open file\"%s\"",buffer); - return 0; + fprintf(stdout,"Cannot open file\"%s\", no symbolic information loaded\n",buffer); + // return 0; } /* allocate for context */ currCtxt = Safe_calloc(1,sizeof(context)); - /* readin the debug information */ - if (!readCdb (cdbFile)) { - fprintf(stdout,"No symbolic information found in file %s.cdb\n",s); - return 0; + if (cdbFile) { + /* readin the debug information */ + if (!readCdb (cdbFile)) { + fprintf(stdout,"No symbolic information found in file %s.cdb\n",s); + //return 0; + } } /* parse and load the modules required */