aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
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/testsuite/gdb.base
parentd4fb63e140aed000a5c6a9d463e616d8409b56f4 (diff)
downloadbinutils-b45627a0393fefeea5ea68b98c6f76932f53d943.zip
binutils-b45627a0393fefeea5ea68b98c6f76932f53d943.tar.gz
binutils-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/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/catch-syscall.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/catch-syscall.exp b/gdb/testsuite/gdb.base/catch-syscall.exp
index 9054cfe..8aa81e0 100644
--- a/gdb/testsuite/gdb.base/catch-syscall.exp
+++ b/gdb/testsuite/gdb.base/catch-syscall.exp
@@ -288,6 +288,11 @@ proc do_syscall_tests {} {
set thistest "catch syscall to a nonsense syscall is prohibited"
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.
# This test should catch any syscalls.
if [runto_main] then { test_catch_syscall_without_args }