* fixed GCC 4.4.0 mingw compilation:
[fw/sdcc] / src / SDCCdebug.c
index b07aaf2ecd1f3a6399e8de83ada1d8c6bb9549c3..cbf4234889b66bc66bc927a27022cba05b6cf2a9 100644 (file)
@@ -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);
+}