Github messages for voidlinux
 help / color / mirror / Atom feed
From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Closed]: gcc: include gdb helpers for libstdc++ [ci skip]
Date: Tue, 20 Dec 2022 22:53:42 +0100	[thread overview]
Message-ID: <20221220215342.G3dSrwWpIT89Jq1ZsiER0Om6KWbBCpz8Z3vjlUHWSNI@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37864@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 2076 bytes --]

There's a closed pull request on the void-packages repository

gcc: include gdb helpers for libstdc++ [ci skip]
https://github.com/void-linux/void-packages/pull/37864

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

So. Gcc (or more specifically libstdc++) includes extra files to make debugging C++ code in gdb easier. This includes pretty printers and xmethods. These files can significantly improve the experience of debugging C++ code. Debian based distros (and probably other ones) already include this into their libstdc++ package.

But Void explicitly deletes these files that are generated when compiling. Rather than deleting these useful files, I included then into the libstdc++ package like Ubuntu does. This doesn't add any extra dependencies, gdb will try to load it if python is present, otherwise it'll ignore it.

There are some other packages that already include extra info for gdb: `gstreamer1`, `glib-devel`... Interestingly enough, these packages put the files into `/usr/share/gdb/auto-load/usr/lib64` instead of `/usr/share/gdb/auto-load/usr/lib`, which isn't loaded by gdb at all (maybe because `/usr/lib64` is just a symlink).

The files could be moved to `libstdc++-devel`. Maybe it would be more apropriate.

I have built and tested the pretty printers and everything works. It took 5 and a half hours to compile for me (I dont have a very beefy computer), so I'm assigning `[ci skip]`.

I know messing with a `bootstrap=yes` compiler could cause a disaster if something goes wrong but I'm only modifying revelant files and it's working for me (I have it installed on my computer) so I hope everything will be fine.

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - I didn't test cross compiling. The python scripts aren't architecture dependent, so there should be no problems.

  parent reply	other threads:[~2022-12-20 21:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-05 11:44 [PR PATCH] " meator
2022-07-05 11:45 ` meator
2022-07-14 18:40 ` leahneukirchen
2022-10-13  2:15 ` github-actions
2022-10-13 18:26 ` meator
2022-12-20 21:53 ` classabbyamp [this message]
2022-12-20 21:53 ` classabbyamp

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=20221220215342.G3dSrwWpIT89Jq1ZsiER0Om6KWbBCpz8Z3vjlUHWSNI@z \
    --to=classabbyamp@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /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 NNTP newsgroup(s).