This commit is contained in:
condret 2015-04-29 18:35:13 +02:00
parent 0131971e11
commit fcf4a5f081
2 changed files with 5 additions and 2 deletions

View File

@ -632,7 +632,8 @@ static int cb_iova(void *user, void *data) {
RConfigNode *node = (RConfigNode *) data;
if (node->i_value != core->io->va) {
core->io->va = node->i_value;
r_core_block_read (core, 0);
if (r_io_desc_get (core->io, core->io->raised)) //ugly fix for r2 -d ... "r2 is going to die soon ..."
r_core_block_read (core, 0);
// reload symbol information
if (r_list_length (r_bin_get_sections (core->bin))>0)
r_core_cmd0 (core, ".ia*");

View File

@ -294,8 +294,10 @@ R_API int r_io_read_internal(RIO *io, ut8 *buf, int len) {
read_from = io->desc->plugin->name;
bytes_read = io->desc->plugin->read (io, io->desc, buf, len);
} else if (!io->desc) {
if (io->files && r_list_length (io->files) != 0)
if (io->files && r_list_length (io->files) != 0) {
eprintf ("Something really bad has happened, and r2 is going to die soon. sorry! :-(\n");
r_sys_backtrace ();
}
read_from = "FAILED";
bytes_read = 0;
} else {