mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 05:09:43 +00:00
No wait for anybody, just pressed the power button
This commit is contained in:
parent
49af3841d2
commit
e40fb27edb
@ -168,8 +168,6 @@ int linux_handle_signals(RDebug *dbg, int tid) {
|
||||
// Used to remove breakpoints before detaching from a fork, without it the child
|
||||
// will die upon hitting a breakpoint while not being traced
|
||||
static void linux_remove_fork_bps(RDebug *dbg) {
|
||||
RListIter *iter;
|
||||
RBreakpointItem *b;
|
||||
int prev_pid = dbg->pid;
|
||||
int prev_tid = dbg->tid;
|
||||
|
||||
@ -178,6 +176,8 @@ static void linux_remove_fork_bps(RDebug *dbg) {
|
||||
dbg->tid = dbg->forked_pid;
|
||||
r_debug_select (dbg, dbg->forked_pid, dbg->forked_pid);
|
||||
#if __i386__ || __x86_64__
|
||||
RListIter *iter;
|
||||
RBreakpointItem *b;
|
||||
// Unset all hw breakpoints in the child process
|
||||
r_debug_reg_sync (dbg, R_REG_TYPE_DRX, false);
|
||||
r_list_foreach (dbg->bp->bps, iter, b) {
|
||||
|
@ -5,9 +5,10 @@
|
||||
#include "minunit.h"
|
||||
|
||||
#if __linux__
|
||||
const char *arch = R_SYS_ARCH;
|
||||
// const char *arch = R_SYS_ARCH;
|
||||
const char *arch = "x86";
|
||||
const char *os = R_EGG_OS_NAME;
|
||||
int bits = (R_SYS_BITS & R_SYS_BITS_64)? 64: 32;
|
||||
const int bits = (R_SYS_BITS & R_SYS_BITS_64)? 64: 32;
|
||||
const char program[] = " \
|
||||
read@syscall(0); \
|
||||
write@syscall(1); \
|
||||
|
Loading…
Reference in New Issue
Block a user