* breakpoint.c (catch_syscall_completer): Pass 'word' as second

argument to complete_on_enum.
testsuite
	* gdb.base/catch-syscall.exp (do_syscall_tests): Add completion
	test.
This commit is contained in:
Tom Tromey
2012-11-02 19:05:12 +00:00
parent d4fb63e140
commit b45627a039
4 changed files with 16 additions and 1 deletions

View File

@ -14972,7 +14972,7 @@ catch_syscall_completer (struct cmd_list_element *cmd,
{
const char **list = get_syscall_names ();
VEC (char_ptr) *retlist
= (list == NULL) ? NULL : complete_on_enum (list, text, word);
= (list == NULL) ? NULL : complete_on_enum (list, word, word);
xfree (list);
return retlist;