* 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:
parent
d4fb63e140
commit
b45627a039
|
@ -1,3 +1,8 @@
|
||||||
|
2012-11-02 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* breakpoint.c (catch_syscall_completer): Pass 'word' as second
|
||||||
|
argument to complete_on_enum.
|
||||||
|
|
||||||
2012-11-02 Tom Tromey <tromey@redhat.com>
|
2012-11-02 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* configure: Rebuild.
|
* configure: Rebuild.
|
||||||
|
|
|
@ -14972,7 +14972,7 @@ catch_syscall_completer (struct cmd_list_element *cmd,
|
||||||
{
|
{
|
||||||
const char **list = get_syscall_names ();
|
const char **list = get_syscall_names ();
|
||||||
VEC (char_ptr) *retlist
|
VEC (char_ptr) *retlist
|
||||||
= (list == NULL) ? NULL : complete_on_enum (list, text, word);
|
= (list == NULL) ? NULL : complete_on_enum (list, word, word);
|
||||||
|
|
||||||
xfree (list);
|
xfree (list);
|
||||||
return retlist;
|
return retlist;
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2012-11-02 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* gdb.base/catch-syscall.exp (do_syscall_tests): Add completion
|
||||||
|
test.
|
||||||
|
|
||||||
2012-11-02 Pedro Alves <palves@redhat.com>
|
2012-11-02 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
PR gdb/14766
|
PR gdb/14766
|
||||||
|
|
|
@ -288,6 +288,11 @@ proc do_syscall_tests {} {
|
||||||
set thistest "catch syscall to a nonsense syscall is prohibited"
|
set thistest "catch syscall to a nonsense syscall is prohibited"
|
||||||
gdb_test "catch syscall nonsense_syscall" "Unknown syscall name .*" $thistest
|
gdb_test "catch syscall nonsense_syscall" "Unknown syscall name .*" $thistest
|
||||||
|
|
||||||
|
# Regression test for syscall completer bug.
|
||||||
|
gdb_test "complete catch syscall close chroo" \
|
||||||
|
"catch syscall close chroot" \
|
||||||
|
"complete catch syscall with multiple words"
|
||||||
|
|
||||||
# Testing the 'catch syscall' command without arguments.
|
# Testing the 'catch syscall' command without arguments.
|
||||||
# This test should catch any syscalls.
|
# This test should catch any syscalls.
|
||||||
if [runto_main] then { test_catch_syscall_without_args }
|
if [runto_main] then { test_catch_syscall_without_args }
|
||||||
|
|
Loading…
Reference in New Issue