This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Sunday, December 15 2013, Gabriel Krisman Bertazi wrote:

> 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.

Thanks.

Just for the record, I pre-reviewed Krisman's patch and it's OK.  I am
also helping him in obtaining the copyright assignment.

I will send a patch to test this feature as soon as my other patch
(which touches catch-syscall.exp and improves it) gets approved.

-- 
Sergio


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]