radare2/libr/debug
pancake ee39ba239a * Add 'FS' #define for w32 and *nix
* Add support for thumb mode ARM disassembler
  - Workaround a warning in r_vm for arm-16
* More work on drx.c, but still not integrated
2010-10-04 00:42:11 +02:00
..
p * Add 'FS' #define for w32 and *nix 2010-10-04 00:42:11 +02:00
t * Fix build 2010-07-23 12:19:39 +02:00
arg.c * Implement 'dr=' command to print regs in columns 2010-03-04 02:11:54 +01:00
debug.c * Implement stacked register storage 2010-09-23 20:42:35 +02:00
desc.c * Clean many warnings 2010-08-16 17:48:47 +02:00
Makefile * Added traced field in RAnalBB 2010-06-18 11:09:19 +02:00
map.c * Remove deprecated documentation 2010-07-02 02:01:51 +02:00
pid.c * Implement basic thread list and attach support 2010-03-11 00:29:36 +01:00
plugin.c * Initial draft implementation of hardware breakpoints 2010-09-24 05:41:54 +02:00
README * Fix delta seeking (do not allow seeks <0) 2010-02-02 11:09:52 +01:00
reg.c * Added 'drd' command to show only modified regs 2010-09-24 16:45:56 +02:00
TODO * Fix segfault in stepover in non-debugger mode 2010-06-22 20:27:14 +02:00
trace.c * Highlight destination offset when cursor on jmp/call in visual 2010-09-18 02:51:17 +02:00

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 allow 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)