public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/24726] [dwz] Support DWARF5
  2019-01-01  0:00 [Bug default/24726] New: [dwz] Support DWARF5 vries at gcc dot gnu.org
@ 2019-01-01  0:00 ` jakub at redhat dot com
  2019-01-01  0:00 ` vries at gcc dot gnu.org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at redhat dot com @ 2019-01-01  0:00 UTC (permalink / raw)
  To: dwz

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

Jakub Jelinek <jakub at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at redhat dot com

--- Comment #2 from Jakub Jelinek <jakub at redhat dot com> ---
Yeah.  Next step teaching it to read the DWARF 5 section headers, understand
new forms etc., still shouldn't be that hard.
The hardest part is actually optimizing it, switching between
DW_FORM_implicit_const and the old forms as needed in order to have smallest
possible output.

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

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

* [Bug default/24726] New: [dwz] Support DWARF5
@ 2019-01-01  0:00 vries at gcc dot gnu.org
  2019-01-01  0:00 ` [Bug default/24726] " jakub at redhat dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: vries at gcc dot gnu.org @ 2019-01-01  0:00 UTC (permalink / raw)
  To: dwz

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

            Bug ID: 24726
           Summary: [dwz] Support DWARF5
           Product: dwz
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: default
          Assignee: nobody at sourceware dot org
          Reporter: vries at gcc dot gnu.org
                CC: dwz at sourceware dot org
  Target Milestone: ---

Currently we have:
...
  value = read_16 (ptr);
  if (value < 2 || value > 4)
    {
      error (0, 0, "%s: DWARF version %d unhandled", dso->filename,
             value);
      return 1;
    }
...

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

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

* [Bug default/24726] [dwz] Support DWARF5
  2019-01-01  0:00 [Bug default/24726] New: [dwz] Support DWARF5 vries at gcc dot gnu.org
  2019-01-01  0:00 ` [Bug default/24726] " jakub at redhat dot com
@ 2019-01-01  0:00 ` vries at gcc dot gnu.org
  2020-05-22 21:11 ` jan.kratochvil at redhat dot com
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: vries at gcc dot gnu.org @ 2019-01-01  0:00 UTC (permalink / raw)
  To: dwz

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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
A first step could be to improve an error message like this:
...
dwz:
/data/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.dwarf2/nonvar-access/nonvar-access:
Unknown DWARF DW_OP_160
...
to use "DW_OP_implicit_pointer" instead, by updating dwarf2.def and friends.

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

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

* [Bug default/24726] [dwz] Support DWARF5
  2019-01-01  0:00 [Bug default/24726] New: [dwz] Support DWARF5 vries at gcc dot gnu.org
  2019-01-01  0:00 ` [Bug default/24726] " jakub at redhat dot com
  2019-01-01  0:00 ` vries at gcc dot gnu.org
@ 2020-05-22 21:11 ` jan.kratochvil at redhat dot com
  2020-09-14 12:44 ` mark at klomp dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jan.kratochvil at redhat dot com @ 2020-05-22 21:11 UTC (permalink / raw)
  To: dwz

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat dot com

--- Comment #3 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
Created attachment 12564
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12564&action=edit
Support few DWARF-5 DW_AT_*+DW_OP_*

This patch adds a minimal set of DW_AT_*+DW_OP_* to successfully pass LLVM-11
testsuite with its DWZ support (off-trunk so far).

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

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

* [Bug default/24726] [dwz] Support DWARF5
  2019-01-01  0:00 [Bug default/24726] New: [dwz] Support DWARF5 vries at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-05-22 21:11 ` jan.kratochvil at redhat dot com
@ 2020-09-14 12:44 ` mark at klomp dot org
  2021-02-08 14:24 ` mark at klomp dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mark at klomp dot org @ 2020-09-14 12:44 UTC (permalink / raw)
  To: dwz

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #4 from Mark Wielaard <mark at klomp dot org> ---
Some initial patches and an outline of some of the work needed:
https://sourceware.org/pipermail/dwz/2020q3/000668.html

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

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

* [Bug default/24726] [dwz] Support DWARF5
  2019-01-01  0:00 [Bug default/24726] New: [dwz] Support DWARF5 vries at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2020-09-14 12:44 ` mark at klomp dot org
@ 2021-02-08 14:24 ` mark at klomp dot org
  2021-02-08 14:25 ` mark at klomp dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mark at klomp dot org @ 2021-02-08 14:24 UTC (permalink / raw)
  To: dwz

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

--- Comment #5 from Mark Wielaard <mark at klomp dot org> ---
The normal DWARF5 as generated by GCC is supported now.

Some additional improvements to support more variants:

- Handle DW_UT_type (in .debug_info variant of DWARF4 .debug_types)

- Handle DW_FORM_strx[1234]
  (and .debug_str_offsets, DW_AT_str_offsets_base)
- Handle DW_FORM_addrx[1234]
  (and .debug_addr section, DW_OP_addrx, DW_OP_constx, DW_AT_addr_base)
- Handle DW_FORM_rnglistx and DW_FORM_loclistsx
  (DW_AT_rnglists_base, DW_AT_loclists_base)

- Handle .debug_names (standardized variant of .gdb_index)

- Use DW_FORM_ref_sup[48] and DW_FORM_strp_sup instead of
  DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt
  (Probably behind --dwarf5 flag)
- Generate .debug_sup section (standardized variant of .gnu_debugaltlink)
  (Probably behind --dwarf5 flag)

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

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

* [Bug default/24726] [dwz] Support DWARF5
  2019-01-01  0:00 [Bug default/24726] New: [dwz] Support DWARF5 vries at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-02-08 14:24 ` mark at klomp dot org
@ 2021-02-08 14:25 ` mark at klomp dot org
  2021-02-18 14:42 ` mark at klomp dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mark at klomp dot org @ 2021-02-08 14:25 UTC (permalink / raw)
  To: dwz

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |27376, 27375, 27374, 27373


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=27373
[Bug 27373] [dwz, dwarf5] DW_UT_type support
https://sourceware.org/bugzilla/show_bug.cgi?id=27374
[Bug 27374] [dwz, dwarf5] .debug_names support
https://sourceware.org/bugzilla/show_bug.cgi?id=27375
[Bug 27375] [dwz, dwarf5] .debug_addr support
https://sourceware.org/bugzilla/show_bug.cgi?id=27376
[Bug 27376] [dwz, dwarf5] DW_FORM_loclistx support
-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug default/24726] [dwz] Support DWARF5
  2019-01-01  0:00 [Bug default/24726] New: [dwz] Support DWARF5 vries at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-02-08 14:25 ` mark at klomp dot org
@ 2021-02-18 14:42 ` mark at klomp dot org
  2021-02-19 11:43 ` mark at klomp dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mark at klomp dot org @ 2021-02-18 14:42 UTC (permalink / raw)
  To: dwz

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |27434


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=27434
[Bug 27434] [dwz, dwarf5] .debug_str_offsets support
-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug default/24726] [dwz] Support DWARF5
  2019-01-01  0:00 [Bug default/24726] New: [dwz] Support DWARF5 vries at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2021-02-18 14:42 ` mark at klomp dot org
@ 2021-02-19 11:43 ` mark at klomp dot org
  2021-02-26 23:26 ` mark at klomp dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mark at klomp dot org @ 2021-02-19 11:43 UTC (permalink / raw)
  To: dwz

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |27440


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=27440
[Bug 27440] [dwz, dwarf5] Add --dwarf-5 flag to generate .debug_sup, ref_sup
and strp_sup
-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug default/24726] [dwz] Support DWARF5
  2019-01-01  0:00 [Bug default/24726] New: [dwz] Support DWARF5 vries at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2021-02-19 11:43 ` mark at klomp dot org
@ 2021-02-26 23:26 ` mark at klomp dot org
  2021-03-12 19:02 ` mark at klomp dot org
  2021-03-16 19:46 ` mliska at suse dot cz
  10 siblings, 0 replies; 12+ messages in thread
From: mark at klomp dot org @ 2021-02-26 23:26 UTC (permalink / raw)
  To: dwz

https://sourceware.org/bugzilla/show_bug.cgi?id=24726
Bug 24726 depends on bug 27440, which changed state.

Bug 27440 Summary: [dwz, dwarf5] Add --dwarf-5 flag to generate .debug_sup, ref_sup and strp_sup
https://sourceware.org/bugzilla/show_bug.cgi?id=27440

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

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

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

* [Bug default/24726] [dwz] Support DWARF5
  2019-01-01  0:00 [Bug default/24726] New: [dwz] Support DWARF5 vries at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2021-02-26 23:26 ` mark at klomp dot org
@ 2021-03-12 19:02 ` mark at klomp dot org
  2021-03-16 19:46 ` mliska at suse dot cz
  10 siblings, 0 replies; 12+ messages in thread
From: mark at klomp dot org @ 2021-03-12 19:02 UTC (permalink / raw)
  To: dwz

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |27572


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=27572
[Bug 27572] Multifile drops DW_TAG_namespace::DW_AT_export_symbols
-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug default/24726] [dwz] Support DWARF5
  2019-01-01  0:00 [Bug default/24726] New: [dwz] Support DWARF5 vries at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2021-03-12 19:02 ` mark at klomp dot org
@ 2021-03-16 19:46 ` mliska at suse dot cz
  10 siblings, 0 replies; 12+ messages in thread
From: mliska at suse dot cz @ 2021-03-16 19:46 UTC (permalink / raw)
  To: dwz

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

Martin Liska <mliska at suse dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mliska at suse dot cz

--- Comment #6 from Martin Liska <mliska at suse dot cz> ---
> - Handle DW_FORM_addrx[1234]
>   (and .debug_addr section, DW_OP_addrx, DW_OP_constx, DW_AT_addr_base)

I have a test-case where these are present. It's well known MozillaFirefox
package:
https://splichal.eu/tmp/libxul.so-86.0.1-1.1.x86_64.debug.zst

It's rejected currently in:
$ dwz libxul.so-86.0.1-1.1.x86_64.debug -L 200000000 -l 40000000
dwz: ./usr/lib/debug/usr/lib64/firefox/libxul.so-86.0.1-1.1.x86_64.debug:
Unknown DWARF DW_OP_addrx

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

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

end of thread, other threads:[~2021-03-16 19:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01  0:00 [Bug default/24726] New: [dwz] Support DWARF5 vries at gcc dot gnu.org
2019-01-01  0:00 ` [Bug default/24726] " jakub at redhat dot com
2019-01-01  0:00 ` vries at gcc dot gnu.org
2020-05-22 21:11 ` jan.kratochvil at redhat dot com
2020-09-14 12:44 ` mark at klomp dot org
2021-02-08 14:24 ` mark at klomp dot org
2021-02-08 14:25 ` mark at klomp dot org
2021-02-18 14:42 ` mark at klomp dot org
2021-02-19 11:43 ` mark at klomp dot org
2021-02-26 23:26 ` mark at klomp dot org
2021-03-12 19:02 ` mark at klomp dot org
2021-03-16 19:46 ` mliska at suse dot cz

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