From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11533 invoked by alias); 3 Dec 2013 20:08:45 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 11520 invoked by uid 89); 3 Dec 2013 20:08:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Dec 2013 20:08:43 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rB3K8YwD016713 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 3 Dec 2013 15:08:35 -0500 Received: from barimba.redhat.com (ovpn-113-124.phx2.redhat.com [10.3.113.124]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id rB3K8Ywm019583; Tue, 3 Dec 2013 15:08:34 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] add @kindex for catchpoints Date: Tue, 03 Dec 2013 20:08:00 -0000 Message-Id: <1386101307-17383-1-git-send-email-tromey@redhat.com> X-SW-Source: 2013-12/txt/msg00100.txt.bz2 I wanted to find the docs for "catch load" the other day, and I found out that this isn't in the index. It seems to me that each command ought to be in the index for quick reference like this, so this patch adds an @kindex (chosen because it seems to be what the rest of the manual does) for each "catch" subcommand. 2013-12-03 Tom Tromey * gdb.texinfo (Set Catchpoints): Add @kindex for each command documented here. --- gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdb.texinfo | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 8dd60ac..b4bb466 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,5 +1,10 @@ 2013-12-03 Tom Tromey + * gdb.texinfo (Set Catchpoints): Add @kindex for each command + documented here. + +2013-12-03 Tom Tromey + * gdb.texinfo (@direntry): Add menu item for gdbserver. 2013-12-03 Walfred Tedeschi diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 35e3eed..01a9907 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -4108,6 +4108,9 @@ Stop when @var{event} occurs. @var{event} can be any of the following: @item throw @r{[}@var{regexp}@r{]} @itemx rethrow @r{[}@var{regexp}@r{]} @itemx catch @r{[}@var{regexp}@r{]} +@kindex catch throw +@kindex catch rethrow +@kindex catch catch @cindex stop on C@t{++} exceptions The throwing, re-throwing, or catching of a C@t{++} exception. @@ -4165,6 +4168,7 @@ You cannot install an exception handler interactively. @end itemize @item exception +@kindex catch exception @cindex Ada exception catching @cindex catch Ada exceptions An Ada exception being raised. If an exception name is specified @@ -4182,18 +4186,22 @@ the command to use to catch such exceptions is @kbd{catch exception Pck.Constraint_Error}. @item exception unhandled +@kindex catch exception unhandled An exception that was raised but is not handled by the program. @item assert +@kindex catch assert A failed Ada assertion. @item exec +@kindex catch exec @cindex break on fork/exec A call to @code{exec}. This is currently only available for HP-UX and @sc{gnu}/Linux. @item syscall @itemx syscall @r{[}@var{name} @r{|} @var{number}@r{]} @dots{} +@kindex catch syscall @cindex break on a system call. A call to or return from a system call, a.k.a.@: @dfn{syscall}. A syscall is a mechanism for application programs to request a service @@ -4324,20 +4332,25 @@ Catchpoint 1 (syscall(s) 252) Again, in this case @value{GDBN} would not be able to display syscall's names. @item fork +@kindex catch fork A call to @code{fork}. This is currently only available for HP-UX and @sc{gnu}/Linux. @item vfork +@kindex catch vfork A call to @code{vfork}. This is currently only available for HP-UX and @sc{gnu}/Linux. @item load @r{[}regexp@r{]} @itemx unload @r{[}regexp@r{]} +@kindex catch load +@kindex catch unload The loading or unloading of a shared library. If @var{regexp} is given, then the catchpoint will stop only if the regular expression matches one of the affected libraries. @item signal @r{[}@var{signal}@dots{} @r{|} @samp{all}@r{]} +@kindex catch signal The delivery of a signal. With no arguments, this catchpoint will catch any signal that is not @@ -4365,6 +4378,7 @@ commands. @end table @item tcatch @var{event} +@kindex tcatch Set a catchpoint that is enabled only for one stop. The catchpoint is automatically deleted after the first time the event is caught. -- 1.8.1.4