From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27536 invoked by alias); 6 May 2003 19:52:19 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27528 invoked from network); 6 May 2003 19:52:17 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 6 May 2003 19:52:17 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19D8UM-0006Vh-00; Tue, 06 May 2003 14:52:34 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19D8Tx-0004X9-00; Tue, 06 May 2003 15:52:09 -0400 Date: Tue, 06 May 2003 19:52:00 -0000 From: Daniel Jacobowitz To: Alain Magloire Cc: gdb@sources.redhat.com Subject: Re: Catchpoint in GDB/MI Message-ID: <20030506195208.GA15526@nevyn.them.org> Mail-Followup-To: Alain Magloire , gdb@sources.redhat.com References: <20030506164501.GA25457@nevyn.them.org> <200305061946.PAA03660@node1.ott.qnx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200305061946.PAA03660@node1.ott.qnx.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-05/txt/msg00082.txt.bz2 On Tue, May 06, 2003 at 03:46:40PM -0400, Alain Magloire wrote: > > > > On Tue, May 06, 2003 at 12:12:10PM -0400, Alain Magloire wrote: > > > > > > > > On Tue, May 06, 2003 at 11:15:50AM -0400, Alain Magloire wrote: > > > > > > > > > > > > On Tue, May 06, 2003 at 10:50:47AM -0400, Alain Magloire wrote: > > > > > > > Bonjour > > > > > > > > > > > > > > Anyone working on putting catchpoints in GDB/MI. > > > > > > > If yes what is the semantics. > > > > > > > If no what is the best semantic? Completely OOB: > > > > > > > > > > > > > > -catch load > > > > > > > ^done > > > > > > > ... > > > > > > > > > > > > > > *stop,reason="shared-loaded",shared="libm.so" > > > > > > > > > > > > Do we even have any targets besides HP/UX where shared library > > > > > > catchpoints _work_? > > > > > > > > > > Probably none, in the gdb source tree. For example, catching exceptions > > > > > is probably compiler dependent 8-( .. I think. Do remember Daniel Berlin > > > > > proposing a scheme for gcc long long time ago, could not retrace the email > > > > > though ... darn! > > > > > > > > I've actually added catchpoints for exceptions back; but they'll just > > > > show up as breakpoints for now. If we want them to show up differently > > > > someone's going to have to work out (both CLI and MI) what they should > > > > look like. > > > > > > > > > > Details please? 8-) > > > > > > Do you mean setting breakpoint on some special function used to throw > > > exception __raise_exception(..)? > > > > > > How does it work ? > > > > Yes. It's __cxa_throw and __cxa_begin_catch; I only implemented them > > for the GCC 3.x (i.e. multivendor) ABI. You can find the patch in the > > archives if you want to know more :) > > > > Are you refering to this: > http://sources.redhat.com/ml/gdb/2002-07/msg00191.html > > Very informative, thanks. > > Reading your exchange, I probably can implement your scheme whithout > having to change gdb; setting the breakpoint in __cxa_throw and examining > the arguments. > > It seems straightforward enough, so why not put it in gdb? Unless > of course I do not grasp the entire complexity of the problem 8-) > True it is compiler specific unless the cxxabi becomes more widespread > but at least a start. No, I was referring to the message a few weeks ago where I checked in support for "catch catch". It doesn't yet parse a type to catch but that is easy to add once the FETCH_POINTER_ARGUMENT method is available. Alain, something is wrong with your mailer; I'm getting two copies with different Message-Id's of everything you send me. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer