From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26601 invoked by alias); 28 Apr 2008 21:08:00 -0000 Received: (qmail 26536 invoked by uid 22791); 28 Apr 2008 21:07:59 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 28 Apr 2008 21:07:37 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 0637498278; Mon, 28 Apr 2008 21:07:36 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id C5A5B98149; Mon, 28 Apr 2008 21:07:35 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JqaZS-0004tf-Va; Mon, 28 Apr 2008 17:07:34 -0400 Date: Tue, 29 Apr 2008 18:58:00 -0000 From: Daniel Jacobowitz To: Aleksandar Ristovski Cc: gdb@sources.redhat.com Subject: Re: catch catch before program starts Message-ID: <20080428210734.GA18467@caradoc.them.org> Mail-Followup-To: Aleksandar Ristovski , gdb@sources.redhat.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-12-11) 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-04/txt/msg00248.txt.bz2 On Mon, Apr 28, 2008 at 04:51:17PM -0400, Aleksandar Ristovski wrote: > Hello, > > When we first load symbols, we can not set "catch catch" or "catch throw". The error message will say "Function __cxa_... not defined". > > However, we can set a breakpoint in .plt section. The attached patch illustrates this (it is not finished as there will be some error messages even though the catch will be set). I suggest this be handled in the generic breakpoint-setting code, not specific to "catch". It's not a complete solution, by the way: it will only help if the main executable uses catch / throw. If only shared libraries do, then there won't be a PLT entry in the executable. So maybe we should allow these breakpoints to be created "pending"? -- Daniel Jacobowitz CodeSourcery