Beispiel #1
0
        public TiXDSSettingsEditor(TiXDSDebugSettings settings)
        {
            Settings = settings ?? new TiXDSDebugSettings();

            if (Settings.FLASHResources != null)
            {
                foreach (var r in Settings.FLASHResources)
                {
                    FLASHResources.Add(r);
                }
            }

            FLASHResources.CollectionChanged += (s, e) => { Settings.FLASHResources = FLASHResources.ToArray(); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(FLASHResources))); };
        }
Beispiel #2
0
            public LoadedProgrammingStub(string path, ISimpleGDBSession session, TiXDSDebugSettings settings)
            {
                byte[] data = File.ReadAllBytes(path);
                _Path = path.Replace('\\', '/');
                var offsets = Enumerable.Range(0, data.Length - 3).Where(d => BitConverter.ToInt32(data, d) == Signature).ToArray();

                if (offsets.Length != 1)
                {
                    throw new Exception("Unable to uniquely locate the address table block in " + path);
                }

                int off = offsets[0];

                LoadAddress       = BitConverter.ToUInt32(data, off += 4);
                EndOfStack        = BitConverter.ToUInt32(data, off += 4);
                ProgramBuffer     = BitConverter.ToUInt32(data, off += 4);
                ProgramBufferSize = BitConverter.ToUInt32(data, off += 4);

                EntryPoint = BitConverter.ToUInt32(data, off += 4);
                Result     = BitConverter.ToUInt32(data, off += 4);
                _Session   = session;
                _Settings  = settings;
            }
Beispiel #3
0
 public StubInstance(string directory, TiXDSDebugSettings settings, IExternalToolInstance tool)
 {
     _BaseDir  = directory;
     _Settings = settings;
     Tool      = tool;
 }