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