Fixes for pxr flags at zero and 32bit words in thumb

This commit is contained in:
pancake 2015-06-17 01:23:16 +02:00
parent 4a33d2afac
commit 2efc450248
2 changed files with 6 additions and 2 deletions

View File

@ -2592,10 +2592,14 @@ static int cmd_print(void *data, const char *input) {
r_cons_printf ("]\n");
} else {
const int ocols = core->print->cols;
int bitsize = core->assembler->bits;
/* Thumb is 16bit arm but handles 32bit data */
if (bitsize == 16)
bitsize = 32;
core->print->cols = 1;
core->print->flags |= R_PRINT_FLAGS_REFS;
r_print_hexdump (core->print, core->offset, core->block, len,
core->assembler->bits, core->assembler->bits/8);
bitsize, bitsize/8);
core->print->flags &= ~R_PRINT_FLAGS_REFS;
core->print->cols = ocols;
}

View File

@ -714,7 +714,7 @@ R_API char *r_core_anal_hasrefs(RCore *core, ut64 value) {
type = r_core_anal_address (core, value);
fcn = r_anal_get_fcn_in (core->anal, value, 0);
if (value && fi) {
if (fi) {
r_strbuf_appendf (s, " %s", fi->name);
}
if (fcn) {