rizin/libr/debug
pancake c6aa69fef1 * Initial pseudo-working implementation of the r_bp library
- Integrated with r_debug module
    - Hardware breakpoints will be handled by the debug backend
  - Breakpoints support software/hardware, lil/big endian, trace, enable/disable
  - Plugin infrastructure adding software breakpoint templates
    - Added x86 and arm software breakpoint plugins
* Some work on the 'db' command to manage debugger breakpoint
* Added empty dH to transplant process between debugger backends
2009-04-12 22:46:44 +00:00
..
p * Initial dummy implementation of r_bp 2009-04-11 21:22:20 +00:00
bp.c * Initial pseudo-working implementation of the r_bp library 2009-04-12 22:46:44 +00:00
debug.c * Initial pseudo-working implementation of the r_bp library 2009-04-12 22:46:44 +00:00
handle.c * Initial working implementation of the debugger mode 2009-02-18 01:43:57 +01:00
Makefile * Initial pseudo-working implementation of the r_bp library 2009-04-12 22:46:44 +00:00
pid.c * More R_API-zation 2009-04-01 22:44:43 +00:00
README * Lot of random work on multiple fronts 2009-02-17 00:09:40 +01:00

r_debug
=======

  Debugger API for radare2


We need to connect multiple pieces...

debugger engine: vm, qemu, bochs, ptrace, mach, w32dbg...

controlflow commands: (should be splitted in two layers)

 - continue -- low level
 - step     -- low level
 - trace   --- high level one
 - ...

 the control flow commands depend on other stuff to decide
 how to work..this is for example if the arch doesnt supports
 continuation, we should provide a step based continue. The
 same when a watchpoint is activated and the arch didnt
 supports hardware regs for this purpose.

We also need a load/store/dump/restore functions to move the
program from one engine to another (ptrace -> qemu).. we should
provide a way for all this operations between them.

[continue]
    |--- check if bp api allows us to continue or we should step into..
    |--- check if debug plugin supports continue

[getregs]
    |--- r_reg give us a list of registers
    |    - dr (show bitsize debug registers) // 32 by default
    |    - dr 32 (show 32 bit debug registers) // depends on size
    |    - dr eax (show 'eax' register value)
    |    - dr al  (show 8bit register 'al')
    |    - dr eax=33 (set 'eax' register value)