Print error when disassembly fails
This commit is contained in:
parent
430d35282a
commit
cafca288a2
@ -273,11 +273,16 @@ static int _format_helper_set_string(Format * format, int id, char const * name,
|
|||||||
static int _format_helper_decode(Format * format, char const * section,
|
static int _format_helper_decode(Format * format, char const * section,
|
||||||
off_t offset, size_t size, off_t base)
|
off_t offset, size_t size, off_t base)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "DEBUG: %s(\"%s\", 0x%lx, 0x%lx, 0x%lx)\n", __func__,
|
fprintf(stderr, "DEBUG: %s(\"%s\", 0x%lx, 0x%lx, 0x%lx)\n", __func__,
|
||||||
section, offset, size, base);
|
section, offset, size, base);
|
||||||
#endif
|
#endif
|
||||||
return code_decode_at(format->code, section, offset, size, base);
|
if((ret = code_decode_at(format->code, section, offset, size, base))
|
||||||
|
!= 0)
|
||||||
|
error_print("deasm");
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user