From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3287 invoked by alias); 7 Dec 2011 15:29:26 -0000 Received: (qmail 3276 invoked by uid 22791); 7 Dec 2011 15:29:25 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,TW_DB X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Dec 2011 15:29:12 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RYJQl-0001pc-7s from pedro_alves@mentor.com ; Wed, 07 Dec 2011 07:29:11 -0800 Received: from scottsdale.localnet ([172.30.7.53]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 7 Dec 2011 15:29:09 +0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [PATCH] gdb.ada/catch_ex.exp, gdb.ada/mi_catch_ex.exp and unsupported catchpoints Date: Wed, 07 Dec 2011 16:10:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-13-generic; KDE/4.7.2; x86_64; ; ) Cc: Joel Brobecker References: <201112061718.50031.pedro@codesourcery.com> <20111207100101.GC21915@adacore.com> <201112071514.11266.pedro@codesourcery.com> In-Reply-To: <201112071514.11266.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201112071529.07524.pedro@codesourcery.com> X-IsSubscribed: yes 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-12/txt/msg00229.txt.bz2 On Wednesday 07 December 2011 15:14:11, Pedro Alves wrote: > On Wednesday 07 December 2011 10:01:01, Joel Brobecker wrote: > > > (gdb) catch exception > > > Cannot insert catchpoints in this configuration. > > > > We're going to have to talk to the guys who decided to build the Ada > > runtime without debugging info. The normal way to build the runtime > > is no debug info *except* for a few files. This is really doing a > > disservice to the users! > > This is plain gcc/gnat as shipped on Ubuntu 11.04. It may be > that the idea is that since this is not necessary for backtracing, > it's not crucial, and then one is expected to install some -dev > or -dbg package to be able to fully debug Ada? But then again, > I've installed all gnat related -dev and -dbg packagets I could > find now, and I still get catchpoints unsupported. What library > is supposed to have these symbols? Oh silly me. I forgot that we default to prefix=/usr/local, and then we end up not picking the /usr/debug debug dir by default. Building with --prefix=/usr made catchpoints now work. And I had stumbled on this before when I hacked on Ada catchpoints a while back, and just forgot about it. The good news is that I still get all passes, sync and async. :-) Now I don't know if I needed any extra package compared to what I had already installed, or if I did, which . :-P In any case, it's clear the necessary symbols aren't in any library's minimal symbols. -- Pedro Alves