No wait for anybody, just pressed the power button

This commit is contained in:
pancake 2024-05-13 01:35:48 +02:00
parent 49af3841d2
commit e40fb27edb
2 changed files with 5 additions and 4 deletions

View File

@ -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) {

View File

@ -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); \