Ejemplo n.º 1
0
void
outputDebugStackSymbols (void)
{
  if (getenv ("SDCC_DEBUG_VAR_STORAGE"))
    {
      dumpSymInfo ("XStack", xstack);
      dumpSymInfo ("IStack", istack);
    }

  if (options.debug && debugFile)
    {
      symbol *sym;

      if (xstack)
        {
          for (sym = setFirstItem (xstack->syms); sym; sym = setNextItem (xstack->syms))
            debugFile->writeSymbol (sym);
        }

      if (istack)
        {
          for (sym = setFirstItem (istack->syms); sym; sym = setNextItem (istack->syms))
            debugFile->writeSymbol(sym);
        }
    }
}
Ejemplo n.º 2
0
void outputDebugSymbols(void)
{
  if(getenv("SDCC_DEBUG_VAR_STORAGE"))
    {
      dumpSymInfo("Code", code);
      dumpSymInfo("Data", data);
      dumpSymInfo("PData", pdata);
      dumpSymInfo("XData", xdata);
      dumpSymInfo("XIData", xidata);
      dumpSymInfo("XInit", xinit);
      dumpSymInfo("IData", idata);
      dumpSymInfo("Bit", bit);
      dumpSymInfo("Statics", statsg);
      dumpSymInfo("SFR", sfr);
      dumpSymInfo("SFRBits", sfrbit);
      dumpSymInfo("Reg", reg);
      dumpSymInfo("Generic", generic);
      dumpSymInfo("Overlay", overlay);
      dumpSymInfo("EEProm", eeprom);
      dumpSymInfo("Home", home);
    }

  if(options.debug && debugFile)
  {
    symbol *sym;
           
    if (data) {
      for (sym = setFirstItem (data->syms); sym; sym = setNextItem (data->syms))
        debugFile->writeSymbol(sym);
    }

    if (idata) {
      for (sym = setFirstItem (idata->syms); sym; sym = setNextItem (idata->syms))
        debugFile->writeSymbol(sym);
    }

    if (bit) {
      for (sym = setFirstItem (bit->syms); sym; sym = setNextItem (bit->syms))
        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);
    }

    if(port->genXINIT && xidata) {
      for (sym = setFirstItem (xidata->syms); sym; sym = setNextItem (xidata->syms))
	debugFile->writeSymbol(sym);        
    }

    if (sfr) {
      for (sym = setFirstItem (sfr->syms); sym; sym = setNextItem (sfr->syms))
        debugFile->writeSymbol(sym);
    }

    if (sfrbit) {
      for (sym = setFirstItem (sfrbit->syms); sym; sym = setNextItem (sfrbit->syms))
        debugFile->writeSymbol(sym);
    }

    if (home) {
      for (sym = setFirstItem (home->syms); sym; sym = setNextItem (home->syms))
        debugFile->writeSymbol(sym);
    }

    if (code) {
      for (sym = setFirstItem (code->syms); sym; sym = setNextItem (code->syms))
        debugFile->writeSymbol(sym);
    }

    if (statsg) {
      for (sym = setFirstItem (statsg->syms); sym; sym = setNextItem (statsg->syms))
        debugFile->writeSymbol(sym);
    }

    if(port->genXINIT && xinit) {
      for (sym = setFirstItem (xinit->syms); sym; sym = setNextItem (xinit->syms))
	debugFile->writeSymbol(sym);        
    }
  }

  return;
}