mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-10 07:21:55 +00:00
Fallback to anal.arch=v850 when using asm.arch=v850.gnu ##anal
This commit is contained in:
parent
fee00c7b88
commit
307075dc39
@ -376,6 +376,16 @@ static bool cb_analarch(void *user, void *data) {
|
||||
if (r_anal_use (core->anal, node->value)) {
|
||||
return true;
|
||||
}
|
||||
char *p = strchr (node->value, '.');
|
||||
if (p) {
|
||||
char *arch = strdup (node->value);
|
||||
arch[p - node->value] = 0;
|
||||
free (node->value);
|
||||
node->value = arch;
|
||||
if (r_anal_use (core->anal, node->value)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
const char *aa = r_config_get (core->config, "asm.arch");
|
||||
if (!aa || strcmp (aa, node->value)) {
|
||||
eprintf ("anal.arch: cannot find '%s'\n", node->value);
|
||||
|
Loading…
Reference in New Issue
Block a user