public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/31088] New: gdb requires build directories to exist
@ 2023-11-25 18:33 giecrilj at stegny dot 2a.pl
  2023-11-29 16:54 ` [Bug gdb/31088] " fche at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: giecrilj at stegny dot 2a.pl @ 2023-11-25 18:33 UTC (permalink / raw)
  To: gdb-prs

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-04 19:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-25 18:33 [Bug gdb/31088] New: gdb requires build directories to exist giecrilj at stegny dot 2a.pl
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

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