Dont show asm.describe on strings ##disasm

This commit is contained in:
pancake 2022-07-28 12:13:49 -04:00 committed by pancake
parent bc268f1c46
commit a4c97fb052
2 changed files with 26 additions and 1 deletions

View File

@ -5185,7 +5185,17 @@ static void ds_print_comments_right(RDisasmState *ds) {
bool is_code = (!ds->hint) || (ds->hint && ds->hint->type != 'd');
RAnalMetaItem *mi = r_meta_get_at (ds->core->anal, ds->at, R_META_TYPE_ANY, NULL);
if (mi) {
is_code = mi->type != 'd';
switch (mi->type) {
case 'd':
case 'h':
case 'm':
case 's':
case 'f':
is_code = false;
break;
default:
break;
}
mi = NULL;
}
if (is_code && ds->asm_describe && !ds->has_description) {

View File

@ -1,3 +1,18 @@
NAME=pd asmdescribe on string
FILE=bins/mach0/mac-ls4
ARGS=-a arm -b64
CMDS=<<EOF
s 0x100003ac0
Cz
e asm.describe=1
pd 2
EOF
EXPECT=<<EOF
0x100003ac0 .string "\xbf\n" ; len=3
0x100003ac3 unaligned
EOF
RUN
NAME=pd call sym bug
FILE=bins/mach0/hello-objc-arm
CMDS=<<EOF