Skip to content

Commit

Permalink
nesure
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jan 3, 2025
1 parent bab6e1c commit e6342a5
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions libr/debug/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,19 +505,11 @@ R_API bool r_debug_set_arch(RDebug *dbg, const char *arch, int bits) {
dbg->bits = R_SYS_BITS_PACK (64);
break;
}
#if 0
if (plugin->bits) {
if (R_SYS_BITS_CHECK (plugin->bits, 64)) {
dbg->bits = R_SYS_BITS_PACK (64);
} else if (R_SYS_BITS_CHECK (plugin->bits, 16)) {
dbg->bits = R_SYS_BITS_PACK (16);
} else {
dbg->bits = R_SYS_BITS_PACK (32);
if (R_SYS_BITS_CHECK (plugin->bits, bits)) {
dbg->bits = R_SYS_BITS_PACK (bits);
}
} else {
dbg->bits = R_SYS_BITS;
}
#endif
free (dbg->arch);
dbg->arch = strdup (arch);
return true;
Expand Down

0 comments on commit e6342a5

Please sign in to comment.