public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "giecrilj at stegny dot 2a.pl" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/31088] New: gdb requires build directories to exist
Date: Sat, 25 Nov 2023 18:33:11 +0000	[thread overview]
Message-ID: <bug-31088-4717@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=31088

            Bug ID: 31088
           Summary: gdb requires build directories to exist
           Product: gdb
           Version: 12.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: giecrilj at stegny dot 2a.pl
  Target Milestone: ---

Summary:

gdb cannot move up a directory that does not exist in the source tree when
looking for a source file.

Steps to reproduce on Ubuntu 22.04:

1. {
  DEBUGINFOD_URLS='https://debuginfod.ubuntu.com' &&
  export DEBUGINFOD_URLS; }

2. set debuginfod enabled on

3. attach to a running yelp

3.1. debuginfod will download debuginfo and refuse to download source files

4. {
  cd
"${HOME}/.cache/debuginfod_client/a4f415af56b06f1f38d5a0339dd9828ff136b115/" &&
  apt source libc6 && cd ../c74e800dfd5f72649d673b44292f4a817e45150b/ &&
  apt source libglib2.0-0; }

5. dir
${HOME}/.cache/debuginfod_client/a4f415af56b06f1f38d5a0339dd9828ff136b115/glibc-2.35

6. dir
${HOME}/.cache/debuginfod_client/c74e800dfd5f72649d673b44292f4a817e45150b/glib2.0-2.72.4

7. detach and attach

8. up

Expected result:
4518          ret = (*poll_func) (fds, n_fds, timeout);

Actual result:
Continuing without source file ./debian/build/deb/../../../glib/gmain.c.
4518    ../../../glib/gmain.c: No such file.

Work-around:
{ install -d
"${HOME}/.cache/debuginfod_client/c74e800dfd5f72649d673b44292f4a817e45150b/glib2.0-2.72.4/debian/build/deb";
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2023-11-25 18:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-25 18:33 giecrilj at stegny dot 2a.pl [this message]
2023-11-29 16:54 ` [Bug gdb/31088] " fche at redhat dot com
2023-11-29 16:55 ` mark at klomp dot org
2023-11-29 17:07 ` mark at klomp dot org
2023-12-04 19:50 ` amerey at redhat dot com

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-31088-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: 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).