From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11221 invoked by alias); 28 Jan 2003 15:42:06 -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 11210 invoked from network); 28 Jan 2003 15:42:06 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 28 Jan 2003 15:42:06 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18dZl7-0005kg-00; Tue, 28 Jan 2003 11:42:53 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18dXsV-0001Tb-00; Tue, 28 Jan 2003 10:42:23 -0500 Date: Tue, 28 Jan 2003 15:42:00 -0000 From: Daniel Jacobowitz To: Markus Werle Cc: gdb@sources.redhat.com Subject: Re: catch throw -how? Message-ID: <20030128154222.GA5561@nevyn.them.org> Mail-Followup-To: Markus Werle , gdb@sources.redhat.com References: <3E36A332.9648D75E@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E36A332.9648D75E@web.de> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-01/txt/msg00461.txt.bz2 On Tue, Jan 28, 2003 at 04:35:14PM +0100, Markus Werle wrote: > Hi! > > Using gdb-5.1.1 I wanted to use the "catch" feature for C++ exceptions like this > > # gdb ./myprogram > GNU gdb 5.1.1 > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i686-pc-linux-gnu"... > (gdb) catch throw > You can't do that without a process to debug. > (gdb) > > 1. I do not understand the error message, please explain > 2. Is this a bug resolved in gdb-5.3 or am I missing some information? I don't think that "catch throw" works on any GNU/Linux target right now. I've got it about half re-implemented for GCC 3.x in a scratch directory right now but I don't know when I'm going to have time to test it. You can get just about the same effect in GCC 3.x by putting a breakpoint on __cxa_throw. In 2.x I think it was __throw. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer