From: oreo639 <oreo639@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: gdb can't step in libstdc++
Date: Sat, 09 Mar 2024 23:33:52 +0100 [thread overview]
Message-ID: <20240309223352.C98C22B524@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-49207@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49207#issuecomment-1986998038
Comment:
This issue is labeled as gdb not being able to step inside libstdc++ (which occurs per-instruction), but your issue appears to be that the file paths shown are the ones from build time? Am I misunderstanding?
Showing `/usr/include/c++/13.2/bits/basic_string.h` would not be correct in this instance since the debug symbols can also point to cpp files. The correct generalized path would be smth like `/usr/sources/libstdc++/...` which isn't supported by void since we don't have `-src` packages.
gdb supports a substitute path for this purpose:
https://sourceware.org/gdb/current/onlinedocs/gdb.html/Source-Path.html#set-substitute_002dpath
> suggested on `#voidlinux` that `gcc`'s template might have `-ffile-prefix-map` missing. This is likely the solution to this problem.
The opposite is the case, the `-ffile-prefix-map` is getting passed and is set up such that the wrksrc is replaced with `./`.
https://github.com/void-linux/void-packages/blob/7771ef865fa7b5312892b8c53dbfbc459cfdfd41/common/environment/configure/debug-debug-prefix-map.sh#L12-L13
next prev parent reply other threads:[~2024-03-09 22:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-09 20:32 [ISSUE] " meator
2024-03-09 20:50 ` meator
2024-03-09 22:33 ` oreo639 [this message]
2024-03-09 22:44 ` oreo639
2024-03-09 22:44 ` oreo639
2024-03-10 2:04 ` oreo639
2024-03-10 2:05 ` oreo639
2024-03-10 2:21 ` oreo639
2024-03-10 6:49 ` meator
2024-03-10 6:55 ` meator
2024-03-10 7:17 ` oreo639
2024-03-10 7:22 ` oreo639
2024-03-10 7:34 ` gdb libstdc++ frame gives warning: <line> <file>.h: No such file or directory oreo639
2024-03-10 7:37 ` oreo639
2024-03-10 7:50 ` oreo639
2024-03-14 11:48 ` ahesford
2024-03-14 11:48 ` [ISSUE] [CLOSED] " ahesford
2024-03-14 17:40 ` meator
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=20240309223352.C98C22B524@inbox.vuxu.org \
--to=oreo639@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).