From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7484 invoked by alias); 23 Jul 2009 10:41:24 -0000 Received: (qmail 7475 invoked by uid 22791); 23 Jul 2009 10:41:23 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Jul 2009 10:41:17 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6NAfFEi009695 for ; Thu, 23 Jul 2009 06:41:15 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n6NAfEl4014422 for ; Thu, 23 Jul 2009 06:41:15 -0400 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n6NAfDKq026892 for ; Thu, 23 Jul 2009 06:41:14 -0400 Message-ID: <4A683E49.4000204@redhat.com> Date: Thu, 23 Jul 2009 10:41:00 -0000 From: Phil Muldoon User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 MIME-Version: 1.0 To: gdb@sourceware.org Subject: help catch catch and help catch throw help text Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-07/txt/msg00183.txt.bz2 Both catch catch, and catch throw refer to an optional argument: (gdb) help catch catch Catch an exception, when caught. With an argument, catch only exceptions with the given name. (gdb) help catch throw Catch an exception, when thrown. With an argument, catch only exceptions with the given name. But specifying an argument, on both you get: (gdb) catch catch foo Junk at end of arguments. (gdb) catch throw foo Junk at end of arguments. I looked at the code and while they support conditions, they do not appear to support named exceptions. These functions call handle_gnu_v3_exceptions which basically set a breakpoint on __cxa_begin_catch, or __cxa_throw depending on the command. Before I submit a documentation patchlet to remove the reference to catching named exceptions, are there other cases languages/conditions that I have not considered? Regards Phil