mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-26 15:54:59 +00:00
Fixes for pxr
flags at zero and 32bit words in thumb
This commit is contained in:
parent
4a33d2afac
commit
2efc450248
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user