mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-08 14:20:19 +00:00
9add8fe3d9
* When cfg.debug=true use dbg.backend ("native") and select core.file.fd.. this simplifies use
15 lines
356 B
C
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();
|
|
}
|