aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-11-02 19:05:12 +0000
committerTom Tromey <tromey@redhat.com>2012-11-02 19:05:12 +0000
commitb45627a0393fefeea5ea68b98c6f76932f53d943 (patch)
treefebbc82d93673a906da1b15502afec699e028d64 /gdb/breakpoint.c
parentd4fb63e140aed000a5c6a9d463e616d8409b56f4 (diff)
downloadgdb-b45627a0393fefeea5ea68b98c6f76932f53d943.zip
gdb-b45627a0393fefeea5ea68b98c6f76932f53d943.tar.gz
gdb-b45627a0393fefeea5ea68b98c6f76932f53d943.tar.bz2
* 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.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 76e3e89..0023ba5 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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;