From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23008 invoked by alias); 12 Aug 2004 08:59:44 -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 22994 invoked from network); 12 Aug 2004 08:59:42 -0000 Received: from unknown (HELO calvin.codito.co.in) (203.199.140.162) by sourceware.org with SMTP; 12 Aug 2004 08:59:42 -0000 Received: from [192.168.100.52] (ramana.codito.co.in [192.168.100.52]) by calvin.codito.co.in (8.12.10/8.12.10) with ESMTP id i7C91LFn023861; Thu, 12 Aug 2004 14:31:21 +0530 Message-ID: <411B316D.8010107@codito.com> Date: Thu, 12 Aug 2004 08:59:00 -0000 From: Ramana Radhakrishnan User-Agent: Mozilla Thunderbird 0.6 (X11/20040605) MIME-Version: 1.0 To: Allen Hopkins CC: gdb@sources.redhat.com Subject: Re: Can't set bkpt at throw statement References: <411AC515.4080002@eecs.berkeley.edu> In-Reply-To: <411AC515.4080002@eecs.berkeley.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00194.txt.bz2 Hey Allen , > I have two essentially identical C++ classes with essentially identical > methods that both throw the same exception. In gdb, I'm able to set a > breakpoint at the "throw" statement in one class, but not in the other. > Here are the break commands, first on the one that succeeds, then on > the one that fails: What are the versions of g++, binutils and gdb that you are using. I tried your case on a 686 with g++ -3.3.4 debian , gdb - 6.1 and binutils 2.14.90 and had no problems with inserting breakpoint #2 . If you could tell the versions of the tools, maybe someone can help you and also check if this is a problem with gdb. regards Ramana