public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug dap/30676] New: modules event includes non-path "path"
@ 2023-07-24 14:56 tromey at sourceware dot org
  2023-07-24 16:20 ` [Bug dap/30676] " tromey at sourceware dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2023-07-24 14:56 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30676
           Summary: modules event includes non-path "path"
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dap
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

I see this modules event:

{"type": "event", "event": "module", "body": {"reason": "new", "module": {"id":
"system-supplied DSO at 0x7ffff7fc4000", "name": "system-supplied DSO at
0x7ffff7fc4000", "path": "system-supplied DSO at 0x7ffff7fc4000"}}, "seq": 13}

Here the "path" should not be present.

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

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

* [Bug dap/30676] modules event includes non-path "path"
  2023-07-24 14:56 [Bug dap/30676] New: modules event includes non-path "path" tromey at sourceware dot org
@ 2023-07-24 16:20 ` tromey at sourceware dot org
  2023-07-25 16:21 ` tromey at sourceware dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2023-07-24 16:20 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I wonder whether gdb should report target: files here.

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

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

* [Bug dap/30676] modules event includes non-path "path"
  2023-07-24 14:56 [Bug dap/30676] New: modules event includes non-path "path" tromey at sourceware dot org
  2023-07-24 16:20 ` [Bug dap/30676] " tromey at sourceware dot org
@ 2023-07-25 16:21 ` tromey at sourceware dot org
  2023-07-25 16:50 ` tromey at sourceware dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2023-07-25 16:21 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
Probably objfpy_get_filename should check OBJF_NOT_FILENAME

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

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

* [Bug dap/30676] modules event includes non-path "path"
  2023-07-24 14:56 [Bug dap/30676] New: modules event includes non-path "path" tromey at sourceware dot org
  2023-07-24 16:20 ` [Bug dap/30676] " tromey at sourceware dot org
  2023-07-25 16:21 ` tromey at sourceware dot org
@ 2023-07-25 16:50 ` tromey at sourceware dot org
  2023-07-25 16:57 ` tromey at sourceware dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2023-07-25 16:50 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
Objfile.is_file already exists, I guess we didn't change 'filename'
due to backward-compat concerns?

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

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

* [Bug dap/30676] modules event includes non-path "path"
  2023-07-24 14:56 [Bug dap/30676] New: modules event includes non-path "path" tromey at sourceware dot org
                   ` (2 preceding siblings ...)
  2023-07-25 16:50 ` tromey at sourceware dot org
@ 2023-07-25 16:57 ` tromey at sourceware dot org
  2023-07-26 15:58 ` tromey at sourceware dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2023-07-25 16:57 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |tromey at sourceware dot org

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
https://sourceware.org/pipermail/gdb-patches/2023-July/201106.html

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

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

* [Bug dap/30676] modules event includes non-path "path"
  2023-07-24 14:56 [Bug dap/30676] New: modules event includes non-path "path" tromey at sourceware dot org
                   ` (3 preceding siblings ...)
  2023-07-25 16:57 ` tromey at sourceware dot org
@ 2023-07-26 15:58 ` tromey at sourceware dot org
  2023-08-01 19:08 ` cvs-commit at gcc dot gnu.org
  2023-08-01 19:16 ` tromey at sourceware dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2023-07-26 15:58 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.1

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

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

* [Bug dap/30676] modules event includes non-path "path"
  2023-07-24 14:56 [Bug dap/30676] New: modules event includes non-path "path" tromey at sourceware dot org
                   ` (4 preceding siblings ...)
  2023-07-26 15:58 ` tromey at sourceware dot org
@ 2023-08-01 19:08 ` cvs-commit at gcc dot gnu.org
  2023-08-01 19:16 ` tromey at sourceware dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-08-01 19:08 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

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

commit 7b4a5561e4bfc251f35c3bdf14f5a780cd3695a8
Author: Tom Tromey <tromey@adacore.com>
Date:   Tue Jul 25 10:55:14 2023 -0600

    Don't supply DAP 'path' for non-file shared libraries

    The DAP 'module' event may include a 'path' component.  I noticed that
    this is supplied even when the module in question does not come from a
    file.

    This patch only emits this field when the objfile corresponds to a
    real file.

    No test case, because I wasn't sure how to write a portable one.
    However, it's clear from gdb.log on Linux:

    {"type": "event", "event": "module", "body": {"reason": "new", "module":
{"id": "system-supplied DSO at 0x7ffff7fc4000", "name": "system-supplied DSO at
0x7ffff7fc4000"}}, "seq": 21}

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

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

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

* [Bug dap/30676] modules event includes non-path "path"
  2023-07-24 14:56 [Bug dap/30676] New: modules event includes non-path "path" tromey at sourceware dot org
                   ` (5 preceding siblings ...)
  2023-08-01 19:08 ` cvs-commit at gcc dot gnu.org
@ 2023-08-01 19:16 ` tromey at sourceware dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2023-08-01 19:16 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

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

--- Comment #6 from Tom Tromey <tromey at sourceware dot org> ---
Fixed.

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

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

end of thread, other threads:[~2023-08-01 19:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-24 14:56 [Bug dap/30676] New: modules event includes non-path "path" tromey at sourceware dot org
2023-07-24 16:20 ` [Bug dap/30676] " tromey at sourceware dot org
2023-07-25 16:21 ` tromey at sourceware dot org
2023-07-25 16:50 ` tromey at sourceware dot org
2023-07-25 16:57 ` tromey at sourceware dot org
2023-07-26 15:58 ` tromey at sourceware dot org
2023-08-01 19:08 ` cvs-commit at gcc dot gnu.org
2023-08-01 19:16 ` tromey at sourceware dot org

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