[PATCH] Fix for PR breakpoints/16297: Fix catch syscall to work with syscall 0

Gabriel Krisman Bertazi gabriel@krisman.be
Sun Dec 15 03:58:00 GMT 2013


Hello,

This is a fix for bug 16297. The problem occurs when the user attempts
to catch any syscall 0 (such as syscall read on Linux/x86_64). GDB was
not able to catch the syscall and was missing the breakpoint.

Now, breakpoint_hit_catch_syscall returns immediately when it finds the
correct syscall number, avoiding a following check for the end of the
search vector, that returns a no hit if the syscall number was zero.

I already sent the form to FSF so I can sign the copyright
assigment.

-- 
Gabriel Krisman Bertazi

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: changelog.txt
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20131215/07287fcc/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: return_immediately_catch_syscall_hit.patch
Type: text/x-diff
Size: 443 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20131215/07287fcc/attachment.bin>


More information about the Gdb-patches mailing list