Fixed GdbStream using GdbSessionManager

This commit is contained in:
Superfranci99 2015-03-15 15:49:53 +01:00
parent a80b3ac836
commit f3eaa5de75
2 changed files with 8 additions and 4 deletions

View File

@ -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 ();

View File

@ -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)]