public static bool Command_SetReg(GPR inReg, UInt32 inValue) { Console.WriteLine("Getting a copy of current registers..."); if (!GDB.GetRegs()) { Console.WriteLine("Couldn't get regs"); return(false); } GDB.tcb.regs[(int)inReg] = inValue; Console.WriteLine("Done, writing regs back"); return(GDB.SetRegs()); }
/// <summary> /// Initializes a new instance of <see cref="GeneralPurposeRegister"/>. /// </summary> /// <param name="index"></param> /// <param name="gpr">The general purpose register index.</param> private GeneralPurposeRegister(int index, GPR gpr) : base(index) { this.gpr = gpr; }
public static string Format(GPR o) { return(string.Format("{0:x8}_{1:x8}_{2:x8}_{3:x8}", o.UL[3], o.UL[2], o.UL[1], o.UL[0])); }
public TraceDiffException(string what, GPR v1, GPR v2) : base("The trace diff hit: " + what + " --- " + HexFmtUt.Format(v1) + " �� " + HexFmtUt.Format(v2)) { }
/// <summary> /// Initializes a new instance of <see cref="GeneralPurposeRegister"/>. /// </summary> /// <param name="index"></param> /// <param name="gpr">The general purpose register index.</param> private GeneralPurposeRegister(int index, GPR gpr) : base(index, gpr == GPR.EAX) { _gpr = gpr; }