fix r_debug_reg_get to use PC instead of pc in dbg

This commit is contained in:
Jeffrey Crowell 2016-04-11 12:26:33 -04:00
parent 644c0c4930
commit 9a77bdc7d5

View File

@ -63,7 +63,7 @@ int linux_step (RDebug *dbg) {
ut64 addr = 0; /* should be eip */
//ut32 data = 0;
//printf("NATIVE STEP over PID=%d\n", pid);
addr = r_debug_reg_get (dbg, "pc");
addr = r_debug_reg_get (dbg, "PC");
ret = ptrace (PTRACE_SINGLESTEP, dbg->pid,
(void*)(size_t)addr, 0);
linux_handle_signals (dbg);