Handle asm.bits=27 in rasm2 -L

This commit is contained in:
pancake 2017-07-28 02:40:51 +02:00
parent 7a74331c1e
commit 3f9232d5de
2 changed files with 8 additions and 9 deletions

View File

@ -91,10 +91,14 @@ static void rasm2_list(RAsm *la, const char *arch) {
}
} else {
bits[0] = 0;
if (h->bits & 8) strcat (bits, "8 ");
if (h->bits & 16) strcat (bits, "16 ");
if (h->bits & 32) strcat (bits, "32 ");
if (h->bits & 64) strcat (bits, "64 ");
if (h->bits == 27) {
strcat (bits, "27");
} else {
if (h->bits & 8) strcat (bits, "8 ");
if (h->bits & 16) strcat (bits, "16 ");
if (h->bits & 32) strcat (bits, "32 ");
if (h->bits & 64) strcat (bits, "64 ");
}
feat = "__";
if (h->assemble && h->disassemble) feat = "ad";
if (h->assemble && !h->disassemble) feat = "a_";

View File

@ -1441,11 +1441,6 @@ R_API int r_debug_child_clone(RDebug *dbg) {
R_API bool r_debug_is_dead (RDebug *dbg) {
bool is_dead = (dbg->pid == -1 && strncmp (dbg->h->name, "gdb", 3)) || (dbg->reason.type == R_DEBUG_REASON_DEAD);
#if 0
if (!strncmp (dbg->h->name, "clcy", 4)) {
return false;
}
#endif
if (dbg->pid > 0) {
is_dead = !dbg->h->kill (dbg, dbg->pid, false, 0);
}