public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Simon Marchi <simon.marchi@ericsson.com>
Cc: Xavier Roirand <roirand@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [RFA] (Ada) Add gdb-mi support for stopping at start of exception handler.
Date: Thu, 04 Jan 2018 02:59:00 -0000	[thread overview]
Message-ID: <20180104025913.zdif7cst336tuvte@adacore.com> (raw)
In-Reply-To: <0050dd92-343b-0b77-04ea-c98dd8f9f246@ericsson.com>

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

  reply	other threads:[~2018-01-04  2:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-03 11:09 Xavier Roirand
2018-01-03 16:30 ` Simon Marchi
2018-01-04  2:59   ` Joel Brobecker [this message]
2018-01-03 16:41 ` Simon Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180104025913.zdif7cst336tuvte@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=roirand@adacore.com \
    --cc=simon.marchi@ericsson.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).