public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrea Corallo <andrea.corallo@arm.com>
To: Antoni Boucher via Jit <jit@gcc.gnu.org>
Cc: Antoni Boucher <bouanto@zoho.com>, nd@arm.com
Subject: Re: Compiling with debug info
Date: Mon, 25 May 2020 13:04:06 +0100	[thread overview]
Message-ID: <87y2pgxlu1.fsf@arm.com> (raw)
In-Reply-To: <20200523143721.2cooaxzzkxmfgjey@bouanto-laptop.localdomain> (Antoni Boucher via Jit's message of "Sat, 23 May 2020 10:37:21 -0400")

Antoni Boucher via Jit <jit@gcc.gnu.org> writes:

> Hi.
> I'd like to debug a segfault I'm having with libgccjit, but I'm unable
> to get debug info.
> I tried adding -g and setting STRIP to 0 but I still get no symbols in
> gdb (in the compiler itself, not the program compiled with it).
>
> For reference, here's my starting point to compile libgccjit:
> https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=libgccjit#n60
>
> Thanks.

Hi Antoni,

not sure if it's the only or the best way, what I usually do when I
discover I need debug symbols is just to recompile the gcc/ folder
within the build directory using the flags I want.

You probably have seen already this page
https://gcc.gnu.org/onlinedocs/jit/internals/index.html#environment-variables
with instructions on how to work with a non installed libgccjit in case
you don't want to install your dev build.

Regards

  Andrea

      reply	other threads:[~2020-05-25 12:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-23 14:37 Antoni Boucher
2020-05-25 12:04 ` Andrea Corallo [this message]

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=87y2pgxlu1.fsf@arm.com \
    --to=andrea.corallo@arm.com \
    --cc=bouanto@zoho.com \
    --cc=jit@gcc.gnu.org \
    --cc=nd@arm.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).