10110111 / edb-debugger

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

Syscall restart condition is most likely detected invalidly #36

Closed 10110111 closed 8 years ago

10110111 commented 8 years ago

For reference see ERESTART* in strace source and in Linux arch/x86/kernel/signal.c along with EINTR. Current code in EDB, trying to check ERESTARTSYS|EINTR looks strange, since ERESTARTSYS|EINTR=512+4=516=ERESTART_RESTARTBLOCK, while there're also ERESTARTNOINTR=513 and ERESTARTNOHAND=514, i.e. such errno values are never meant to be used as bit masks.

10110111 commented 8 years ago

fixed upstream.