mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-26 09:06:02 +00:00
Only run aeip when not in debugger and bin arch is known
This commit is contained in:
parent
93b7305795
commit
cd7f70fc4e
@ -1234,7 +1234,11 @@ int main(int argc, char **argv, char **envp) {
|
||||
|
||||
// no flagspace selected by default the beginning
|
||||
r.flags->space_idx = -1;
|
||||
r_core_cmd0 (&r, "aeip");
|
||||
if (!debug && r.bin && r.bin->cur && r.bin->cur->o && r.bin->cur->o->info) {
|
||||
if (r.bin->cur->o->info->arch) {
|
||||
r_core_cmd0 (&r, "aeip");
|
||||
}
|
||||
}
|
||||
if (perms & R_IO_WRITE) {
|
||||
r_core_cmd0 (&r, "omfg+w");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user