diff --git a/librz/core/cmd_open.c b/librz/core/cmd_open.c index 6c8cf4c080..7af729a107 100644 --- a/librz/core/cmd_open.c +++ b/librz/core/cmd_open.c @@ -118,7 +118,7 @@ static const char *help_msg_om[] = { "omq", "", "list all maps and their fds", "omqq", "", "list all maps addresses (See $MM to get the size)", "omr", " mapid newsize", "resize map with corresponding id", - "omt", " [query]", "list maps using table api", + "omt", "[q] [query]", "list maps using table api", NULL }; @@ -660,7 +660,21 @@ static void cmd_open_map(RzCore *core, const char *input) { } break; case 't': // "omt" - rz_core_cmd_omt(core, input + 2); + switch (input[2]) { + case 'q': // "omtq" + { + const char *arg = rz_str_trim_head_ro(input + 3); + char *query = rz_str_newf("%s%s:quiet", arg, *arg ? "," : ""); + if (query) { + rz_core_cmd_omt(core, query); + } + free(query); + break; + } + default: + rz_core_cmd_omt(core, input + 2); + break; + } break; case ' ': // "om" s = strdup(input + 2); diff --git a/test/db/analysis/x86_32 b/test/db/analysis/x86_32 index 79f2cc309b..3d104ce94f 100644 --- a/test/db/analysis/x86_32 +++ b/test/db/analysis/x86_32 @@ -3442,8 +3442,8 @@ NAME=tiny1 aae non-start-bb first FILE=bins/elf/analysis/tiny1 CMDS=<