public object TryConvertLegacyConfiguration(IBSPConfiguratorHost host, string methodDirectory, Dictionary <string, string> legacyConfiguration) { if (legacyConfiguration == null) { return(null); } AVaRICEDebugSettings result = new AVaRICEDebugSettings(); string tmp; if (legacyConfiguration.TryGetValue("com.sysprogs.avr.avarice.adapter", out tmp)) { result.DebugAdapterType = tmp; } else { return(null); } if (legacyConfiguration.TryGetValue("com.sysprogs.avr.avarice.iface", out tmp)) { result.DebugInterface = tmp; } if (legacyConfiguration.TryGetValue("com.sysprogs.avr.avarice.bitrate", out tmp)) { result.DebugBitrate = tmp; } result.EraseFLASH = legacyConfiguration.TryGetValue("com.sysprogs.avr.avarice.erase", out tmp) && tmp == "--erase"; result.ProgramFLASH = legacyConfiguration.TryGetValue("com.sysprogs.avr.avarice.program", out tmp) && tmp == "--program"; result.VerifyFLASH = legacyConfiguration.TryGetValue("com.sysprogs.avr.avarice.verify", out tmp) && tmp == "--verify"; if (legacyConfiguration.TryGetValue("com.sysprogs.avr.avarice.extraargs", out tmp)) { result.ExtraArguments = tmp; } return(result); }
public StubInstance(DebugStartContext context, IExternalToolInstance tool, int GDBPort, AVaRICEDebugSettings settings) { Tool = tool; _GDBPort = GDBPort; _Settings = settings; }