Exemplo n.º 1
0
 private void ParseGlobalSymbol(string aLine)
 {
     try
     {
         // Image$$ER_RO$$Base                       0x00008000   Number         0  anon$$obj.o(linker$$defined$$symbols)
         MapSymbol symbol     = iEntryCreator.CreateSymbol();
         bool      parsedOkay = symbol.Parse(aLine);
         if (parsedOkay && SymbolCreated != null)
         {
             SymbolCreated(symbol);
         }
     }
     catch (GenericSymbolicCreationException)
     {
     }
 }
Exemplo n.º 2
0
        private void ParseGlobalBaseAddress(string aLine)
        {
            try
            {
                // Image$$ER_RO$$Base                       0x00008000   Number         0  anon$$obj.o(linker$$defined$$symbols)
                MapSymbol baseOffsetEntry = iEntryCreator.CreateSymbol();

                // Keep trying to parse until we are successful. First time we succeed
                // we use the symbol address as the global offset address within the map
                // file (typically 0x8000)
                bool parsedOkay = baseOffsetEntry.Parse(aLine);
                if (parsedOkay && baseOffsetEntry.Address > 0 && BaseAddressHandler != null)
                {
                    BaseAddressHandler((uint)baseOffsetEntry.Address);
                    iStateGlobal = TGlobalState.EProcessingSymbols;
                }
            }
            catch (GenericSymbolicCreationException)
            {
            }
        }