From: kbongers Date: Mon, 18 Feb 2002 04:53:12 +0000 (+0000) Subject: do not require .cdb info X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=429042fc5748400ac907d45c1c223056568ce0e4;p=fw%2Fsdcc do not require .cdb info git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1931 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- 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 */