Patch: fix catch syscall completion

Pedro Alves palves@redhat.com
Fri Oct 26 17:40:00 GMT 2012


On 10/26/2012 06:19 PM, Tom Tromey wrote:
> I noticed that the "catch syscall" completer doesn't work quite right.
> It will complete "catch syscall vfor" ok, but not a multi-word
> use like "catch syscall read vfor".
> 
> This patch fixes the bug.  New test case included.
> Built and regtested on x86-64 Fedora 16.

Looks OK to me.

> 2012-10-26  Tom Tromey  <tromey@redhat.com>
> 
> 	* breakpoint.c (catch_syscall_completer): Pass 'word' as second
> 	argument to complete_on_enum.
> 
> 2012-10-26  Tom Tromey  <tromey@redhat.com>
> 
> 	* gdb.base/catch-syscall.exp (do_syscall_tests): Add completion
> 	test.



-- 
Pedro Alves



More information about the Gdb-patches mailing list