RzCore: default dbg.verbose to false (#2506)

Some messages printed by Rizin might be hard to decode at times. Just
stick to the basic information by default.
This commit is contained in:
Riccardo Schirone 2022-04-06 01:28:15 +02:00 committed by GitHub
parent b1e48a0c1c
commit 272be57bcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 11 deletions

View file

@ -2834,15 +2834,7 @@ static bool cb_log_config_colors(void *coreptr, void *nodeptr) {
static bool cb_dbg_verbose(void *user, void *data) {
RzCore *core = (RzCore *)user;
RzConfigNode *node = (RzConfigNode *)data;
const char *value = node->value;
switch (value[0]) {
case 't':
case 'T':
core->dbg->verbose = true;
break;
default:
core->dbg->verbose = false;
}
core->dbg->verbose = node->i_value;
return true;
}
@ -3345,7 +3337,7 @@ RZ_API int rz_core_config_init(RzCore *core) {
SETBPREF("dbg.skipover", "false", "Make dso perform a dss (same goes for esil and visual/graph");
SETI("dbg.hwbp", 0, "Set HW or SW breakpoints");
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

@ -103,6 +103,6 @@ ood
EOF
REGEXP_FILTER_ERR=([a-zA-Z-]+\s+)
EXPECT_ERR=<<EOF
Process with PID attach File -helloworld-gcc reopened in read-write mode
Process with PID File -helloworld-gcc reopened in read-write mode
EOF
RUN