From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12973 invoked by alias); 22 Feb 2008 13:26:04 -0000 Received: (qmail 12958 invoked by uid 22791); 22 Feb 2008 13:26:04 -0000 X-Spam-Check-By: sourceware.org Received: from igw3.br.ibm.com (HELO igw3.br.ibm.com) (32.104.18.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 22 Feb 2008 13:25:29 +0000 Received: from mailhub1.br.ibm.com (unknown [9.18.232.109]) by igw3.br.ibm.com (Postfix) with ESMTP id 7C65F390335 for ; Fri, 22 Feb 2008 10:15:12 -0300 (BRST) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m1MDPNXu4087900 for ; Fri, 22 Feb 2008 10:25:23 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m1MCPMr8011778 for ; Fri, 22 Feb 2008 10:25:23 -0200 Received: from [9.18.238.95] ([9.18.238.95]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m1MCPIEv011640; Fri, 22 Feb 2008 10:25:18 -0200 Subject: Re: catch-throw conditions? From: Thiago Jung Bauermann To: Craig Miller Cc: gdb@sourceware.org In-Reply-To: <19143cfb0802211124k275f8f7bi765154764f42ba0@mail.gmail.com> References: <19143cfb0802211124k275f8f7bi765154764f42ba0@mail.gmail.com> Content-Type: text/plain Date: Fri, 22 Feb 2008 14:20:00 -0000 Message-Id: <1203686717.9433.100.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 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: 2008-02/txt/msg00184.txt.bz2 On Thu, 2008-02-21 at 11:24 -0800, Craig Miller wrote: > Does anyone know if there is a way to set a condition on breakpoints > created using the "catch throw" command? Specifically to be able to > only cause a break when a specific C++ Exception is thrown? > > CentOS 4.5 > gdb Red Hat Linux (6.3.0.0-1.143.el4rh) > gcc 3.4.6 > > Thanks for any help you might be able to lend. I've hit a dead end > with google and the GDB docs. I have absolutely no experience with gdb's C++ support, but I saw with "help catch" that gdb 6.7.1 (the current GDB release) has this command: catch throw - a particular exception, when thrown Is it available in your GDB version (which is very old, BTW)? If not, I suggest obtaining the new GDB and trying it out. -- []'s Thiago Jung Bauermann Software Engineer IBM Linux Technology Center