From 8741d91143a8b3e54df0804142d12d4f95d16afc Mon Sep 17 00:00:00 2001 From: pancake Date: Fri, 24 Jan 2025 17:34:02 +0100 Subject: [PATCH] Do not turn off io.va with cfg.debug ##debugger --- libr/core/cconfig.c | 3 --- libr/core/cio.c | 2 +- libr/core/project.c | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/libr/core/cconfig.c b/libr/core/cconfig.c index 42f1ba9baa8eb..0f874de53fe95 100644 --- a/libr/core/cconfig.c +++ b/libr/core/cconfig.c @@ -1362,9 +1362,6 @@ static bool cb_cfgdebug(void *user, void *data) { if (!core) { return false; } - if (core->io) { - core->io->va = !node->i_value; - } if (core->dbg && node->i_value) { const char *dbgbackend = r_config_get (core->config, "dbg.backend"); r_config_set (core->config, "anal.in", "dbg.map"); diff --git a/libr/core/cio.c b/libr/core/cio.c index 120c45efb9803..007ca04acc067 100644 --- a/libr/core/cio.c +++ b/libr/core/cio.c @@ -77,7 +77,7 @@ R_API bool r_core_dump(RCore *core, const char *file, ut64 addr, ut64 size, int fd = r_sandbox_fopen (file, "wb"); } if (!fd) { - R_LOG_ERROR ("Cannot open '%s' for writing", file); + R_LOG_ERROR ("Cannot open coredump '%s' for writing", file); return false; } /* some io backends seems to be buggy in those cases */ diff --git a/libr/core/project.c b/libr/core/project.c index ab908126bfaf7..cdcf79bb49f25 100644 --- a/libr/core/project.c +++ b/libr/core/project.c @@ -709,7 +709,7 @@ R_API bool r_core_project_save(RCore *core, const char *prj_name) { r_config_set (core->config, "prj.name", prj_name); if (!r_core_project_save_script (core, script_path, R_CORE_PRJ_ALL)) { - R_LOG_ERROR ("Cannot open '%s' for writing", prj_name); + R_LOG_ERROR ("Cannot open '%s' project name", prj_name); ret = false; r_config_set (core->config, "prj.name", ""); }