mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
Fix: grab regstate on i386 (#9663)
This commit is contained in:
parent
f30df2c19d
commit
2b7afb9264
@ -2217,7 +2217,7 @@ ut8 *Elf_(r_bin_elf_grab_regstate)(ELFOBJ *bin, int *len) {
|
||||
}
|
||||
}
|
||||
|
||||
int regdelta = (bits == 64)? 0x84: 0x40; // x64 vs x32
|
||||
int regdelta = (bits == 64)? 0x84: 0x5c; // x64 vs x32
|
||||
int regsize = 160; // for x86-64
|
||||
ut8 *buf = malloc (regsize);
|
||||
if (r_buf_read_at (bin->b, bin->phdr[i].p_offset + offset + regdelta, buf, regsize) != regsize) {
|
||||
|
Loading…
Reference in New Issue
Block a user