Exemplo n.º 1
0
        private void SetActualBP()
        {
            switch (bpType)
            {
            case BreakpointType.Read:
                gecko.BreakpointR(bpAddress, bpExact);
                break;

            case BreakpointType.Write:
                gecko.BreakpointW(bpAddress, bpExact);
                break;

            case BreakpointType.ReadWrite:
                gecko.BreakpointRW(bpAddress, bpExact);
                break;

            case BreakpointType.Execute:
                gecko.BreakpointX(bpAddress);
                break;

            default:
                gecko.Step();
                break;
            }
            BPSet = true;
            gecko.Resume();
            //if (!wait)
            //    return true;
            listSet = false;
        }
Exemplo n.º 2
0
 private void ImmediateSwap(object sender, EventArgs e)
 {
     try
     {
         gecko.Pause();
         gecko.poke(sourceFile.dataAddress, targetFile.offset);
         gecko.poke(sourceFile.dataAddress + 1, targetFile.entries);
         gecko.Resume();
         MessageBox.Show("Files swapped");
     }
     catch (EUSBGeckoException exc)
     {
         exceptionHandling.HandleException(exc);
     }
 }