Basic debugger networking.

This commit is contained in:
Ben Vanik
2015-05-23 22:27:43 -07:00
parent 969badd8c3
commit 576d6492dc
51 changed files with 1745 additions and 162 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -6,16 +7,26 @@ using System.Threading.Tasks;
using Xenia.Debug.Utilities;
namespace Xenia.Debug {
public class BreakpointList : Changeable {
public class BreakpointList : Changeable, IReadOnlyCollection<Breakpoint> {
private readonly Debugger debugger;
private readonly List<Breakpoint> breakpoints = new List<Breakpoint>();
public void Add(Breakpoint breakpoint) {
public BreakpointList(Debugger debugger) {
this.debugger = debugger;
}
public void Remove(Breakpoint breakpoint) {
public int Count {
get {
return breakpoints.Count;
}
}
public void Clear() {
public IEnumerator<Breakpoint> GetEnumerator() {
return breakpoints.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator() {
return breakpoints.GetEnumerator();
}
}
}