Add stop address info to the "di" command (#10445)

This commit is contained in:
Andrea Sindoni 2018-06-22 13:17:40 +02:00 committed by radare
parent e3849843c5
commit 238cbbfc11
3 changed files with 3 additions and 1 deletions

View File

@ -4645,6 +4645,7 @@ static int cmd_debug(void *data, const char *input) {
P ("baddr=0x%"PFMT64x"\n", r_debug_get_baddr (core->dbg, NULL));
P ("pid=%d\n", rdi->pid);
P ("tid=%d\n", rdi->tid);
P ("stopaddr=0x%"PFMT64x"\n", core->dbg->stopaddr);
if (rdi->uid != -1) {
P ("uid=%d\n", rdi->uid);
}

View File

@ -75,7 +75,7 @@ int linux_handle_signals (RDebug *dbg) {
//ptrace (PTRACE_SETSIGINFO, dbg->pid, 0, &siginfo);
dbg->reason.type = R_DEBUG_REASON_SIGNAL;
dbg->reason.signum = siginfo.si_signo;
//dbg->stopaddr = siginfo.si_addr;
dbg->stopaddr = siginfo.si_addr;
//dbg->errno = siginfo.si_errno;
// siginfo.si_code -> HWBKPT, USER, KERNEL or WHAT
#warning DO MORE RDEBUGREASON HERE

View File

@ -277,6 +277,7 @@ typedef struct r_debug_t {
int steps; /* counter of steps done */
RDebugReason reason; /* stop reason */
RDebugRecoilMode recoil_mode; /* what did the user want to do? */
ut64 stopaddr; /* stop address */
/* tracing vars */
RDebugTrace *trace;