From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16668 invoked by alias); 22 Feb 2008 11:02:50 -0000 Received: (qmail 16647 invoked by uid 22791); 22 Feb 2008 11:02:48 -0000 X-Spam-Check-By: sourceware.org Received: from s200aog17.obsmtp.com (HELO s200aog17.obsmtp.com) (207.126.144.131) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 22 Feb 2008 11:02:26 +0000 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob017.postini.com ([207.126.147.11]) with SMTP; Fri, 22 Feb 2008 11:02:18 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1AF7FDB77; Fri, 22 Feb 2008 11:02:18 +0000 (GMT) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0B9644C0B8; Fri, 22 Feb 2008 11:02:16 +0000 (GMT) Received: from [164.129.12.194] (bri0669.bri.st.com [164.129.12.194]) by mail1.bri.st.com (MOS 3.7.5a-GA) with ESMTP id CJT93626 (AUTH stubbsa); Fri, 22 Feb 2008 11:02:15 GMT Message-ID: <47BEABB7.2030905@st.com> Date: Fri, 22 Feb 2008 11:28:00 -0000 From: Andrew STUBBS User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Craig Miller Cc: gdb@sourceware.org Subject: Re: catch-throw conditions? References: <19143cfb0802211124k275f8f7bi765154764f42ba0@mail.gmail.com> In-Reply-To: <19143cfb0802211124k275f8f7bi765154764f42ba0@mail.gmail.com> 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: 2008-02/txt/msg00180.txt.bz2 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? In general, conditions work like this (not that the help command will tell you so): catch throw if myerror == 42 I'm not sure where the exception flavour is kept though. Hope that helps Andrew (Actually, on the GDB I have the conditions do not show on info break, and I don't have any C++ code handy to test, so it might be broken. If the condition doesn't work then try this: catch throw commands if myerror != 42 continue end end )