From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61511 invoked by alias); 4 Jan 2018 02:59:21 -0000 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 Received: (qmail 61489 invoked by uid 89); 4 Jan 2018 02:59:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=providers X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 04 Jan 2018 02:59:19 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 31D161176CF; Wed, 3 Jan 2018 21:59:18 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id y-YvfprA6+VR; Wed, 3 Jan 2018 21:59:18 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id C3EE01176CC; Wed, 3 Jan 2018 21:59:17 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 56718809B6; Thu, 4 Jan 2018 06:59:13 +0400 (+04) Date: Thu, 04 Jan 2018 02:59:00 -0000 From: Joel Brobecker To: Simon Marchi Cc: Xavier Roirand , gdb-patches@sourceware.org Subject: Re: [RFA] (Ada) Add gdb-mi support for stopping at start of exception handler. Message-ID: <20180104025913.zdif7cst336tuvte@adacore.com> References: <1514977774-30677-1-git-send-email-roirand@adacore.com> <0050dd92-343b-0b77-04ea-c98dd8f9f246@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0050dd92-343b-0b77-04ea-c98dd8f9f246@ericsson.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SW-Source: 2018-01/txt/msg00049.txt.bz2 Hi Simon, Thanks for the review! > I would like to try running the test, but I am not able to catch > handlers with my setup, I get the "Your Ada runtime appears to be > missing some debugging information" message. I am on Ubuntu 16.04, do > you know how to set up the environment on that distro to get it > working, is it just a matter of installing the right package? Right > now I have the gnat-5 package installed, from the xenial-updates > official repository. I think you need to add one of the "debug" packages. I know that some GNU/Linux distribution providers have a policy of providing everything stripped by default, with the option of installing debug packages when needed. I recommend the debug package be installed when debugging Ada, as GDB needs the debugging information on a small fraction of them in order to implement some of the functionality. Exception handling is one of them. Users of GNAT built from sources do not suffer from this issue (of the stripped runtime), because the default mode for building ensures that the few units we need are indeed built with debug info. -- Joel