public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/27876] New: debuginfod-downloaded source files don't pass proper fullname across mi / (gdb)info source
@ 2021-05-17 17:48 fche at redhat dot com
  2021-11-09 18:36 ` [Bug mi/27876] " amerey at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: fche at redhat dot com @ 2021-05-17 17:48 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 27876
           Summary: debuginfod-downloaded source files don't pass proper
                    fullname across mi / (gdb)info source
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mi
          Assignee: unassigned at sourceware dot org
          Reporter: fche at redhat dot com
  Target Milestone: ---

If gdb downloads a source file via debuginfod, it works great for the command
line UI's list command.  However, "info source" and the MI 

 *stopped .... fullname="/..."

report keeps the original DWARF filename.  An MI consumer such as VSCODE cannot
use such a file name to open the source file for itself.  GDB should report
fullname as the one in the debuginfod client cache.

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

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

* [Bug mi/27876] debuginfod-downloaded source files don't pass proper fullname across mi / (gdb)info source
  2021-05-17 17:48 [Bug mi/27876] New: debuginfod-downloaded source files don't pass proper fullname across mi / (gdb)info source fche at redhat dot com
@ 2021-11-09 18:36 ` amerey at redhat dot com
  2022-02-15 22:47 ` trass3r at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: amerey at redhat dot com @ 2021-11-09 18:36 UTC (permalink / raw)
  To: gdb-prs

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

Aaron Merey <amerey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |amerey at redhat dot com
                 CC|                            |amerey at redhat dot com

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

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

* [Bug mi/27876] debuginfod-downloaded source files don't pass proper fullname across mi / (gdb)info source
  2021-05-17 17:48 [Bug mi/27876] New: debuginfod-downloaded source files don't pass proper fullname across mi / (gdb)info source fche at redhat dot com
  2021-11-09 18:36 ` [Bug mi/27876] " amerey at redhat dot com
@ 2022-02-15 22:47 ` trass3r at gmail dot com
  2022-03-08 20:48 ` cvs-commit at gcc dot gnu.org
  2022-03-08 20:51 ` amerey at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: trass3r at gmail dot com @ 2022-02-15 22:47 UTC (permalink / raw)
  To: gdb-prs

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

trass3r <trass3r at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trass3r at gmail dot com

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

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

* [Bug mi/27876] debuginfod-downloaded source files don't pass proper fullname across mi / (gdb)info source
  2021-05-17 17:48 [Bug mi/27876] New: debuginfod-downloaded source files don't pass proper fullname across mi / (gdb)info source fche at redhat dot com
  2021-11-09 18:36 ` [Bug mi/27876] " amerey at redhat dot com
  2022-02-15 22:47 ` trass3r at gmail dot com
@ 2022-03-08 20:48 ` cvs-commit at gcc dot gnu.org
  2022-03-08 20:51 ` amerey at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-08 20:48 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Aaron Merey <amerey@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9ac37a9ce607b790bea17c7782d73afecaaa916c

commit 9ac37a9ce607b790bea17c7782d73afecaaa916c
Author: Aaron Merey <amerey@redhat.com>
Date:   Fri Nov 19 19:41:40 2021 -0500

    PR gdb/27876 - debuginfod-downloaded source files don't pass proper
fullname across mi / (gdb)info source

    Source files downloaded from debuginfod currently use their original DWARF
    filename as their "fullname".  This causes a mismatch between the fullname
    and the actual location of the source file in the debuginfod client cache.

    MI consumers such as VSCode will fail to open debuginfod-downloaded
    source files due to this.  Also 'info source' will fail to include the
    true paths of these files.

    To fix this, use the debuginfod cache path as the fullname for debuginfod-
    downloaded source files.

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

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

* [Bug mi/27876] debuginfod-downloaded source files don't pass proper fullname across mi / (gdb)info source
  2021-05-17 17:48 [Bug mi/27876] New: debuginfod-downloaded source files don't pass proper fullname across mi / (gdb)info source fche at redhat dot com
                   ` (2 preceding siblings ...)
  2022-03-08 20:48 ` cvs-commit at gcc dot gnu.org
@ 2022-03-08 20:51 ` amerey at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: amerey at redhat dot com @ 2022-03-08 20:51 UTC (permalink / raw)
  To: gdb-prs

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

Aaron Merey <amerey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #2 from Aaron Merey <amerey at redhat dot com> ---
commit 9ac37a9ce6

-- 
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:[~2022-03-08 20:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-17 17:48 [Bug mi/27876] New: debuginfod-downloaded source files don't pass proper fullname across mi / (gdb)info source fche at redhat dot com
2021-11-09 18:36 ` [Bug mi/27876] " amerey at redhat dot com
2022-02-15 22:47 ` trass3r at gmail dot com
2022-03-08 20:48 ` cvs-commit at gcc dot gnu.org
2022-03-08 20:51 ` 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).