public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: fix help for catch catch and catch throw
@ 2012-01-11 20:51 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2012-01-11 20:51 UTC (permalink / raw)
  To: gdb-patches

I'm checking this in.

The help for "catch catch" and "catch throw" claims that they take an
exception name as an argument.  They do not -- this was never
implemented and most of the other references to it were removed some
time ago.

Built on x86-64 F15.

Tom

ChangeLog:
2012-01-11  Tom Tromey  <tromey@redhat.com>

	PR gdb/9598:
	* breakpoint.c (_initialize_breakpoint): Fix help for "catch
	catch" and "catch throw".

Index: breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.639
diff -u -r1.639 breakpoint.c
--- breakpoint.c	9 Jan 2012 20:47:47 -0000	1.639
+++ breakpoint.c	11 Jan 2012 18:28:49 -0000
@@ -13849,15 +13849,13 @@
 
   /* Add catch and tcatch sub-commands.  */
   add_catch_command ("catch", _("\
-Catch an exception, when caught.\n\
-With an argument, catch only exceptions with the given name."),
+Catch an exception, when caught."),
 		     catch_catch_command,
                      NULL,
 		     CATCH_PERMANENT,
 		     CATCH_TEMPORARY);
   add_catch_command ("throw", _("\
-Catch an exception, when thrown.\n\
-With an argument, catch only exceptions with the given name."),
+Catch an exception, when thrown."),
 		     catch_throw_command,
                      NULL,
 		     CATCH_PERMANENT,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-11 19:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-11 20:51 FYI: fix help for catch catch and catch throw Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).