Skip to content

Commit

Permalink
Do not turn off io.va with cfg.debug ##debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
radare authored and trufae committed Jan 24, 2025
1 parent be88771 commit 8741d91
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions libr/core/cconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion libr/core/cio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion libr/core/project.c
Original file line number Diff line number Diff line change
Expand Up @@ -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", "");
}
Expand Down

0 comments on commit 8741d91

Please sign in to comment.