mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-13 16:18:33 +00:00
Fix dbg in x86_64
This commit is contained in:
parent
807c8a4088
commit
b4ccaba2db
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user