From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29025 invoked by alias); 10 Mar 2011 10:12:19 -0000 Received: (qmail 29017 invoked by uid 22791); 10 Mar 2011 10:12:18 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 Mar 2011 10:12:14 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 89F592BAD87; Thu, 10 Mar 2011 05:12:12 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uZyDFFB4Fimj; Thu, 10 Mar 2011 05:12:12 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 191342BAD23; Thu, 10 Mar 2011 05:12:11 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 22BBE1459AD; Thu, 10 Mar 2011 14:12:05 +0400 (RET) Date: Thu, 10 Mar 2011 11:51:00 -0000 From: Joel Brobecker To: Vladimir Prus Cc: gdb-patches@sourceware.org Subject: Re: GDB/MI design question re: Ada exception catchpoints Message-ID: <20110310101205.GX30306@adacore.com> References: <20110309045939.GU30306@adacore.com> <201103100948.15977.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201103100948.15977.vladimir@codesourcery.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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 X-SW-Source: 2011-03/txt/msg00631.txt.bz2 > That seems totally reasonable for me. Cool, thanks. > I assume that for Ada catchpoints, "-break-list" lists some special > type? Not a special type, no, but a special "what": bkpt={number="1",type="breakpoint", disp="keep",enabled="y",addr="0x000000000040527c", what="all Ada exceptions", times="0",original-location="__gnat_debug_raise_exception"} the key elements are type="breakpoint", and what="all Ada exceptions". It's the same for "C++ exception catchpoints": bkpt={number="2",type="breakpoint", disp="keep",enabled="y",addr="[...]", what="exception catch",times="0", original-location="__cxa_begin_catch"} So, the FE has to determine by itself what type of "breakpoint" this is by looking at the "what"... Thanks for the feedback, I'll try to come up with a patch sometime soon. -- Joel