public OpenOCDGDBStub(OpenOCDCommandLine cmdLine, IExternalToolInstance tool, RISCVOpenOCDSettings settings, int gdbPort, int telnetPort, string temporaryScript) { _CmdLine = cmdLine; Tool = tool; _GDBPort = gdbPort; _TelnetPort = telnetPort; _Settings = settings; _TemporaryScript = temporaryScript; }
public RenesasGDBStub(DebugStartContext context, RenesasDebugSettings settings, RenesasGDBServerCommandLine cmdLine, int gdbPort, IExternalToolInstance tool, string peripheralFile, bool loadFLASH) { Tool = tool; _CmdLine = cmdLine; _GDBPort = gdbPort; _Settings = settings; _PeripheralFile = peripheralFile; _LoadFLASH = loadFLASH; }
public RedLinkGDBStub( DebugStartContext context, RedLinkDebugSettings settings, RedLinkServerCommandLine cmdLine, int gdbPort, IExternalToolInstance tool, bool programNow, string explicitSerialNumber, int coreIndex) { Tool = tool; _GDBPort = gdbPort; _Settings = settings; _LoadFLASH = programNow; _ExplicitSerialNumber = explicitSerialNumber; _CoreIndex = coreIndex; }
public static void ReportFLASHProgrammingProgress(IExternalToolInstance tool, IDebugStartService service, ISimpleGDBSession session) { using (var r = session.CreateScopedProgressReporter("Programming FLASH memory", new string[] { "Loading FLASH memory" })) { Regex rgPercentage = new Regex(@"(.*)\( *([0-9]+) *% *\)"); EventHandler <LineReceivedEventArgs> handler = (s, e) => { session.SendInformationalOutput(e.Line); r.AppendLogLine(e.Line); var m = rgPercentage.Match(e.Line); if (m.Success) { int value = int.Parse(m.Groups[2].Value); r.ReportTaskProgress(value, 100, m.Groups[1].ToString()); } }; try { tool.LineReceived += handler; while (tool.IsRunning && !r.IsAborted) { Thread.Sleep(100); } if (r.IsAborted) { tool.TerminateProgram(); throw new OperationCanceledException(); } } finally { tool.LineReceived -= handler; } } }
public ESP8266GDBStub(ESP8266DebugController controller, DebugStartContext context, OpenOCDCommandLine cmdLine, IExternalToolInstance tool, ESPxxOpenOCDSettings settings, int gdbPort, int telnetPort, string temporaryScript) : base(cmdLine, tool, settings, gdbPort, telnetPort, temporaryScript) { _Controller = controller; _Context = context; }
protected override IGDBStubInstance CreateStub(DebugStartContext context, OpenOCDSettings settings, OpenOCDCommandLine cmdLine, int gdbPort, int telnetPort, string temporaryScript, IExternalToolInstance tool) { return(new ESP8266GDBStub(this, context, cmdLine, tool, (ESP8266OpenOCDSettings)settings, gdbPort, telnetPort, temporaryScript)); }
protected override abstract IGDBStubInstance CreateStub(DebugStartContext context, OpenOCDSettings settings, OpenOCDCommandLine cmdLine, int gdbPort, int telnetPort, string temporaryScript, IExternalToolInstance tool);
public StubInstance(string directory, TiXDSDebugSettings settings, IExternalToolInstance tool) { _BaseDir = directory; _Settings = settings; Tool = tool; }
public StubInstance(DebugStartContext context, IExternalToolInstance tool, int GDBPort, AVaRICEDebugSettings settings) { Tool = tool; _GDBPort = GDBPort; _Settings = settings; }
protected virtual IGDBStubInstance CreateStub(DebugStartContext context, RISCVOpenOCDSettings settings, OpenOCDCommandLine cmdLine, int gdbPort, int telnetPort, string temporaryScript, IExternalToolInstance tool) { return(new OpenOCDGDBStub(cmdLine, tool, settings, gdbPort, telnetPort, temporaryScript)); }