Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support 64 bit return value for stub (#1034)
The `return (int) X` command in gdb only sets the 4 lowest bytes of the return register. For example if `rax` was `-1`, a `return int 0` would leave us with `0xffffffff000000` instead of `0x0`. This patch makes `StubBreakpoint` check for the register size and executes `return (int)` or `return (long)` accordingly.
- Loading branch information