Vector35/debugger

Debugger becomes out of state if we restart the process while it is running

xusheng6 opened this issue · 0 comments

Repro steps:

  1. Open the tinystore.macho binary
  2. Run it, and it should break at main
  3. Resume it, and it should wait for your input at the first getchar
  4. Restart the target
  5. The target is restarted, however, even after it has reached the initial breakpoint again, the debugger still reports its status as running
  6. Run reg read in the debugger console and we can see pc is at tinystore.machomain`. Which means the backend works as expected, however, the debugger UI's state is out of sync
  7. Click the "pause" button, and now the UI is back in sync with the backend