public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "fche at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/31088] gdb requires build directories to exist
Date: Wed, 29 Nov 2023 16:54:03 +0000	[thread overview]
Message-ID: <bug-31088-4717-cmg8EgwbpX@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-31088-4717@http.sourceware.org/bugzilla/>

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

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-11-29
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
                 CC|                            |fche at redhat dot com

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
Some baby investigation with ubuntu 22.04 binaries, taking /bin/ls
as an example:

eu-readelf -w `debuginfod-find debuginfo /bin/ls`:

DWARF section [30] '.debug_info' at offset 0x438:
 [Offset]
 Compilation unit at offset 0:
 Version: 5, Abbreviation section offset: 4084, Address size: 8, Offset size: 4
 Unit type: partial (3)
 [     c]  partial_unit         abbrev: 50
           stmt_list            (sec_offset) 0
           comp_dir             (line_strp) "."


 Compilation unit at offset 3348:
 Version: 5, Abbreviation section offset: 0, Address size: 8, Offset size: 4
 Unit type: compile (1)
 [   d20]  compile_unit         abbrev: 43
           producer             (GNU_strp_alt) "GNU GIMPLE 11.2.0
-mtune=generic -march=x86-64 -g -g -O2 -O2 -fno-openmp -fno-openacc -fPIC
-fcf-protection=full -fstack-protector-strong -ffat-lto-objects -fltrans"
           language             (data1) C11 (29)
           name                 (line_strp) "<artificial>"
           comp_dir             (line_strp) "."


i.e., AT_comp_dir = "."

MJW advises this implicates https://dwarfstd.org/issues/210628.1.html ,
wherein it is acknowledged that absolute paths are expected, and offers
semantics to DWARF6 for special cases.  Those special cases would not
help at all in the debuginfod-supplied cases, where the file names in
the client cache have no relationship to the build system's file tree
or the installed location of the binary.

So the question is why are these binaries arriving with ".", seeing that
they were produced by GCC.

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

  reply	other threads:[~2023-11-29 16:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-25 18:33 [Bug gdb/31088] New: " giecrilj at stegny dot 2a.pl
2023-11-29 16:54 ` fche at redhat dot com [this message]
2023-11-29 16:55 ` [Bug gdb/31088] " 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-cmg8EgwbpX@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).