public override void ReadSource(SymSource aSource, TSynchronicity aSynchronicity) { SymbolSource source = (SymbolSource)aSource; // SymbolFileData data = source.ExcavateData(); SymbolFileReader reader = new SymbolFileReader(source, data); reader.Read(aSynchronicity); }
public ObeySource(string aURI, SymSourceProvider aProvider, SymSource aOriginalMapSource) : base(aURI, aProvider) { foreach (SymbolCollection mapCollection in aOriginalMapSource) { mapCollection.IfaceRelocationHandler = this as ISymbolCollectionRelocationHandler; base.Add(mapCollection); } iOriginalMapSource = aOriginalMapSource; }
public override SymSourceCollection CreateSources(string aFileName) { // In order to get the host binary name, we remove the map file extension string fileName = aFileName; string extension = Path.GetExtension(fileName).ToUpper(); if (extension.EndsWith(KMapFileExtension)) { string name = fileName.Substring(0, fileName.Length - extension.Length); fileName = name; } // A map file source contains just a single collection. We don't know // the device-side file name at this point. SymbolCollection collection = SymbolCollection.NewByHostFileName(base.IdAllocator, fileName); collection.IsRelocatable = true; // SymSource source = new SymSource(aFileName, this, collection); return(new SymSourceCollection(source)); }
public override void ReadSource(SymSource aSource, TSynchronicity aSynchronicity) { // Need to work out if it's a GCCE or RVCT map file. TMapFileType type = MapFileUtils.Type(aSource.FileName); // MapReader reader = null; switch (type) { case TMapFileType.ETypeRVCT: reader = new RVCTMapFileReader(aSource, base.Tracer); break; case TMapFileType.ETypeGCCE: reader = new GCCEMapFileReader(aSource, base.Tracer); break; case TMapFileType.ETypeUnknown: default: throw new NotSupportedException(); } // reader.Read(aSynchronicity); }
protected MapReader(SymSource aSource, ITracer aTracer) : base(aSource.FileName, aTracer) { iSource = aSource; iHarmoniser = new SymbolCollectionHarmoniser(Collection); }
public GCCEMapFileReader(SymSource aSource, ITracer aTracer) : base(aSource, aTracer) { base.TrimLine = false; iSymbolParser = new GCCESymbolCreator(this, base.Collection); }
public virtual string GetFileName(SymSource aSource) { string ret = aSource.URI; return(ret); }
public virtual void ReadSource(SymSource aSource, TSynchronicity aSynchronicity) { throw new NotSupportedException(); }
public RVCTMapFileReader(SymSource aSource, ITracer aTracer) : base(aSource, aTracer) { iSymbolParser = new RVCTSymbolCreator(this, base.Collection); }