10110111 / edb-debugger

edb is a cross platform x86/x86-64 debugger.
GNU General Public License v2.0
6 stars 0 forks source link

int 0x80 in 64-bit code is annotated wrongly #37

Open 10110111 opened 8 years ago

10110111 commented 8 years ago

Current code in analyze_syscall depends on debuggee bitness, this is wrong. It should instead check the syscall instruction. This would be different for all: int 0x80 is 32-bit completely, syscall is 64-bit completely, sysenter is 32 bit and needs special handling for 6th parameter.