Fix dbg in x86_64

This commit is contained in:
Roi Martin (@nibble_ds) 2012-09-23 02:57:43 +02:00
parent 807c8a4088
commit b4ccaba2db
2 changed files with 4 additions and 1 deletions

View File

@ -156,6 +156,7 @@ R_API int r_core_bin_load(RCore *r, const char *file) {
{
RIOMap *im;
RListIter *iter;
/* Fix for fat bins */
r_list_foreach (r->io->maps, iter, im) {
im->delta = r->bin->cur.offset;
im->to = im->from + r->bin->cur.size;

View File

@ -78,7 +78,9 @@ R_API int r_io_map_select(RIO *io, ut64 off) {
}
if (fd != -1) {
r_io_set_fdn (io, fd);
r_io_seek (io, delta, R_IO_SEEK_SET);
if (io->debug) /* HACK */
r_io_seek (io, off, R_IO_SEEK_SET);
else r_io_seek (io, delta, R_IO_SEEK_SET);
return 0;
}
r_io_seek (io, off, R_IO_SEEK_SET);