dbg.verbose is now set to false by default (#18911)

* Hide GETREG error shown on WSL1
This commit is contained in:
pancake 2021-07-18 18:25:11 +02:00 committed by GitHub
parent d14e468b86
commit 3e1d31993d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -3598,7 +3598,7 @@ R_API int r_core_config_init(RCore *core) {
SETBPREF ("dbg.hwbp", "false", "Use hardware breakpoints instead of software ones when enabled");
SETCB ("dbg.", "true", &cb_dbg_verbose, "Verbose debug output");
SETCB ("dbg.unlibs", "", &cb_dbg_unlibs, "If set stop when unloading matching libname");
SETCB ("dbg.verbose", "true", &cb_dbg_verbose, "Verbose debug output");
SETCB ("dbg.verbose", "false", &cb_dbg_verbose, "Verbose debug output");
SETBPREF ("dbg.slow", "false", "Show stack and regs in visual mode in a slow but verbose mode");
SETBPREF ("dbg.funcarg", "false", "Display arguments to function call in visual mode");

View File

@ -1206,7 +1206,10 @@ int linux_reg_read(RDebug *dbg, int type, ut8 *buf, int size) {
// ignore ENODEV, it just means this CPU or kernel doesn't support XSTATE
ret = 0;
} else if (ret != 0) {
r_sys_perror ("PTRACE_GETREGSET");
if (dbg->verbose) {
// WSL1 doesnt support retrieving YMM registers, so this call just fails, no need to be noisy
r_sys_perror ("PTRACE_GETREGSET");
}
return false;
}
// stitch together xstate.fpstate._xmm and xstate.ymmh assuming LE