* [Bug default/25459] Forward pseudo-reference triggers error
2020-01-01 0:00 [Bug default/25459] New: Forward pseudo-reference triggers error vries at gcc dot gnu.org
@ 2020-01-01 0:00 ` vries at gcc dot gnu.org
2021-03-12 10:56 ` vries at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2020-01-01 0:00 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=25459
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
There are few things to consider here:
- It would be good to be able to handle a forward pseudo-reference. Presumably
such a thing would be handled by doing two passes over .debug_info, much like
is done in low-mem mode. This ties in somewhat with PR25229 - "Add input
verification phase".
- another question is whether dwz should generate the code such as is present
in
clang-offload-bundler-10.debug. If this was a normal reference, the
referenced
DIE would have been forced into a partial unit. Should we do the same for
pseudo-references?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug default/25459] New: Forward pseudo-reference triggers error
@ 2020-01-01 0:00 vries at gcc dot gnu.org
2020-01-01 0:00 ` [Bug default/25459] " vries at gcc dot gnu.org
2021-03-12 10:56 ` vries at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2020-01-01 0:00 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=25459
Bug ID: 25459
Summary: Forward pseudo-reference triggers error
Product: dwz
Version: unspecified
Status: NEW
Severity: normal
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: ---
As we have seen, the test-case in PR25456 triggers an error:
...
$ dwz clang-offload-bundler-10.debug
dwz: clang-offload-bundler-10.debug: Couldn't find DIE referenced by
DW_OP_GNU_implicit_pointer
...
However, the question is: should this error be triggered?
We have a DIE in a partial unit:
...
<3><481a37>: Abbrev Number: 1 (DW_TAG_formal_parameter)
<481a38> DW_AT_abstract_origin: <0x5232>
<481a3c> DW_AT_location : 0x902527 (location list)
<481a40> DW_AT_GNU_locviews: 0x902525
...
for which we calculate the checksum, so we follow the DW_AT_location to:
...
00902525 v000000000000000 v000000000000003 location view pair
00902527 v000000000000000 v000000000000003 views at 00902525 for:
0000000000000033 0000000000000033 (DW_OP_GNU_implicit_pointer:
<0x1263f86> 0)
...
from where we would like to go to:
...
<1><1263f86>: Abbrev Number: 206 (DW_TAG_dwarf_procedure)
<1263f88> DW_AT_location : 4 byte block: 9e 2 7e 0
(DW_OP_implicit_value 2 byte block: 7e 0 )
...
but we can't because the CU containing this DIE hasn't been processed by
read_debug_info.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug default/25459] Forward pseudo-reference triggers error
2020-01-01 0:00 [Bug default/25459] New: Forward pseudo-reference triggers error vries at gcc dot gnu.org
2020-01-01 0:00 ` [Bug default/25459] " vries at gcc dot gnu.org
@ 2021-03-12 10:56 ` vries at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2021-03-12 10:56 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=25459
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |27568
Referenced Bugs:
https://sourceware.org/bugzilla/show_bug.cgi?id=27568
[Bug 27568] Add initial .debug_info reading phase to dwz
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-12 10:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-01 0:00 [Bug default/25459] New: Forward pseudo-reference triggers error vries at gcc dot gnu.org
2020-01-01 0:00 ` [Bug default/25459] " vries at gcc dot gnu.org
2021-03-12 10:56 ` vries at gcc dot gnu.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).