public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug symtab/30871] New: [gdb/symtab] Means to control finding debuginfo (without/with sysroot prefix) Date: Tue, 19 Sep 2023 08:18:55 +0000 [thread overview] Message-ID: <bug-30871-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=30871 Bug ID: 30871 Summary: [gdb/symtab] Means to control finding debuginfo (without/with sysroot prefix) Product: gdb Version: HEAD Status: NEW Severity: enhancement Priority: P2 Component: symtab Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- As documented here ( https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html ), there are two ways to find debuginfo: - build-id, and - debug link. The build-id is tried first, then the debug link. Then each case also tries first without, then with sysroot prefix. Together this results in 4 different ways to get to the debuginfo. AFAIK, in the test-suite we have test-cases that exercise the build-id and debug link scenarios individually. But that's not the case for the without/with sysroot prefix cases. It would be good to have a way (say a maintenance command) that determines the ways in which debug info can be found. That way we could enforce using the with sysroot case. [ This is relevant in the context of containers. Say we have a container, with an exec and corresponding debug info installed. When we use gdb inside the container to debug the exec, we find the debuginfo using the without sysroot method. When we try the same from outside the container, the without sysroot method fails (because the debug info is installed in the container, not outside) and falls back to the with sysroot method, which will look for the debug info inside the container. ] -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2023-09-19 8:18 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-09-19 8:18 vries at gcc dot gnu.org [this message] 2023-09-19 9:49 ` [Bug symtab/30871] " vries at gcc dot gnu.org
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=bug-30871-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.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: linkBe 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).