mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
Add stop address info to the "di" command (#10445)
This commit is contained in:
parent
e3849843c5
commit
238cbbfc11
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user