Cosmos/source2/Debug/Cosmos.Debug.GDB/Global.cs
Trivalik_cp 85aa226658 add watches functionality to GDB client, if we type: ESP 3
it means dereference ESP and look at this 3 values of uint
   its possible for all register, this is useful to dont need a stack window
add red colored register on changes
many small improvements, and naming improvements
2011-06-15 22:14:41 +00:00

18 lines
No EOL
663 B
C#

using UInt32 = System.UInt32;
using NumberStyles = System.Globalization.NumberStyles;
using ArgumentException = System.ArgumentException;
namespace Cosmos.Debug.GDB {
public class Global {
static public GDB GDB;
static public AsmFile AsmSource;
static readonly public char[] SpaceSeparator = new[] { ' ' };
static readonly public char[] TabSeparator = new[] { '\t' };
static public UInt32 FromHexWithLeadingZeroX(string aValue) {
if (false == aValue.StartsWith("0x"))
throw new ArgumentException("aValue");
return UInt32.Parse(aValue.Substring(2), NumberStyles.HexNumber);
}
}
}