radare2/libr/core/t/dbg.c
pancake 9add8fe3d9 * Add 'dpf' command to set pid=core.file.fd
* When cfg.debug=true use dbg.backend ("native")
  and select core.file.fd.. this simplifies use
2010-04-11 01:46:07 +02:00

15 lines
356 B
C

#include <r_core.h>
int main() {
RCore *core = r_core_new ();
r_core_file_open (core, "dbg:///bin/ls", R_FALSE);
r_core_cmd0(core, "e cfg.debug=true");
// r_debug_use (&core->dbg, "native");
// r_core_cmd0(core, "dpf");
// r_core_cmd0(core, "dpf");
r_core_cmd0(core, "dr");
r_core_cmd0(core, ".dr*");
r_core_cmd0(core, "px@esp");
r_cons_flush();
}