X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2FSDCCdebug.c;h=cbf4234889b66bc66bc927a27022cba05b6cf2a9;hb=503506adabdfdde204ab0fc7daeed9f9105ca460;hp=b07aaf2ecd1f3a6399e8de83ada1d8c6bb9549c3;hpb=3edb89ad609028843dfe58f72953cd207582a8ca;p=fw%2Fsdcc diff --git a/src/SDCCdebug.c b/src/SDCCdebug.c index b07aaf2e..cbf42348 100644 --- a/src/SDCCdebug.c +++ b/src/SDCCdebug.c @@ -37,6 +37,7 @@ void outputDebugSymbols(void) { dumpSymInfo("Code", code); dumpSymInfo("Data", data); + dumpSymInfo("PData", pdata); dumpSymInfo("XData", xdata); dumpSymInfo("XIData", xidata); dumpSymInfo("XInit", xinit); @@ -71,6 +72,11 @@ void outputDebugSymbols(void) debugFile->writeSymbol(sym); } + if (pdata) { + for (sym = setFirstItem (pdata->syms); sym; sym = setNextItem (pdata->syms)) + debugFile->writeSymbol(sym); + } + if (xdata) { for (sym = setFirstItem (xdata->syms); sym; sym = setNextItem (xdata->syms)) debugFile->writeSymbol(sym); @@ -149,5 +155,13 @@ void dumpSymInfo(char *pcName, memmap *memItem) } - - +/*------------------------------------------------------------------*/ +/* emitDebuggerSymbol - call the port specific routine to associate */ +/* the current code location with a debugger symbol */ +/*------------------------------------------------------------------*/ +void +emitDebuggerSymbol (char * debugSym) +{ + if (port->debugger.emitDebuggerSymbol) + port->debugger.emitDebuggerSymbol (debugSym); +}