mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-29 09:13:19 +00:00
Fix asm.arch #8334
This commit is contained in:
parent
ee40472c9f
commit
1d0fba0b70
@ -369,11 +369,16 @@ static int cb_asmarch(void *user, void *data) {
|
||||
if (core && core->anal && core->anal->bits) {
|
||||
bits = core->anal->bits;
|
||||
}
|
||||
if (*node->value == '?') {
|
||||
update_asmarch_options (core, node);
|
||||
/* print more verbose help instead of plain option values */
|
||||
rasm2_list (core, NULL, node->value[1]);
|
||||
return false;
|
||||
if (node->value[0] == '?') {
|
||||
if (strlen (node->value) > 1 && node->value[1] == '?') {
|
||||
update_asmarch_options (core, node);
|
||||
/* print more verbose help instead of plain option values */
|
||||
rasm2_list (core, NULL, node->value[1]);
|
||||
return false;
|
||||
} else {
|
||||
print_node_options (node);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
r_egg_setup (core->egg, node->value, bits, 0, R_SYS_OS);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user