mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 12:58:39 +00:00
40 lines
1,009 B
C#
40 lines
1,009 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Cosmos.GdbClient;
|
|
using Cosmos.GdbClient.BasicCommands;
|
|
using Cosmos.GdbClient.Tools;
|
|
|
|
namespace GdpClientTester
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
GdbConnection connection = new GdbConnection();
|
|
GdbController.Instance = new GdbController(connection);
|
|
try
|
|
{
|
|
GdbController.Instance.Extended();
|
|
}
|
|
catch
|
|
{
|
|
System.Diagnostics.Debug.WriteLine("GDB not running");
|
|
return;
|
|
}
|
|
|
|
new ContinueCommand().Send();
|
|
Console.WriteLine("Running, press a key to trace.");
|
|
Console.ReadLine();
|
|
new BreakCommand().Send();
|
|
|
|
while (true)
|
|
{
|
|
|
|
}
|
|
|
|
Console.WriteLine("Done");
|
|
Console.ReadLine();
|
|
}
|
|
}
|
|
}
|