From bab6e1cc75e36b630478cd82c2a332164b032ed0 Mon Sep 17 00:00:00 2001 From: pancake Date: Fri, 3 Jan 2025 16:08:25 +0100 Subject: [PATCH] kissdbg --- libr/core/cconfig.c | 3 --- libr/debug/debug.c | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libr/core/cconfig.c b/libr/core/cconfig.c index ee135448dc5bb..00f6bdf91c616 100644 --- a/libr/core/cconfig.c +++ b/libr/core/cconfig.c @@ -858,9 +858,6 @@ static bool cb_asmbits(void *user, void *data) { if (!bits) { return false; } -if (bits == 256) { -r_sys_breakpoint (); -} if (bits == core->rasm->config->bits && bits == core->dbg->bits) { // early optimization return true; diff --git a/libr/debug/debug.c b/libr/debug/debug.c index 70ea23520e065..dc41b055c73b7 100644 --- a/libr/debug/debug.c +++ b/libr/debug/debug.c @@ -505,6 +505,7 @@ R_API bool r_debug_set_arch(RDebug *dbg, const char *arch, int bits) { dbg->bits = R_SYS_BITS_PACK (64); break; } +#if 0 if (plugin->bits) { if (R_SYS_BITS_CHECK (plugin->bits, 64)) { dbg->bits = R_SYS_BITS_PACK (64); @@ -516,6 +517,7 @@ R_API bool r_debug_set_arch(RDebug *dbg, const char *arch, int bits) { } else { dbg->bits = R_SYS_BITS; } +#endif free (dbg->arch); dbg->arch = strdup (arch); return true;