mirror of
https://github.com/pleonex/NitroDebugger.git
synced 2025-06-18 21:25:42 -04:00
Fixed GdbStream using GdbSessionManager
This commit is contained in:
parent
a80b3ac836
commit
f3eaa5de75
@ -12,8 +12,10 @@ namespace IO_RegisterViewer
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public override void Read (GdbStream stream)
|
||||
public override void Read ()
|
||||
{
|
||||
GdbStream stream = new GdbStream (GdbSessionManager.GetClient(0));
|
||||
|
||||
if (stream == null)
|
||||
return;
|
||||
|
||||
@ -56,8 +58,10 @@ namespace IO_RegisterViewer
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public override void Read (GdbStream stream)
|
||||
public override void Read ()
|
||||
{
|
||||
GdbStream stream = new GdbStream (GdbSessionManager.GetClient(0));
|
||||
|
||||
BinaryReader br = new BinaryReader (stream);
|
||||
|
||||
this.Bg0cnt = br.ReadInt16 ();
|
||||
|
@ -25,8 +25,8 @@ namespace NitroDebugger
|
||||
{
|
||||
public abstract class DataStructure
|
||||
{
|
||||
public abstract void Read(GdbStream stream);
|
||||
public abstract void Write(GdbStream stream);
|
||||
public abstract void Read();
|
||||
public abstract void Write();
|
||||
}
|
||||
|
||||
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
|
||||
|
Loading…
Reference in New Issue
Block a user