Bug 27474 - [dwz] Report unknown dwarf problem only once
Summary: [dwz] Report unknown dwarf problem only once
Status: NEW
Alias: None
Product: dwz
Classification: Unclassified
Component: default (show other bugs)
Version: unspecified
: P2 enhancement
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-26 12:33 UTC by Tom de Vries
Modified: 2021-02-26 12:33 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom de Vries 2021-02-26 12:33:56 UTC
I run the gdb testsuite with target boards cc-with-dwz and cc-with-dwz-m to test dwz against gdb.

I have a grepping script that filters out known irrelevant dwz messages.

However, consider this output:
...
gdb compile failed, dwz: /home/vries/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.dwarf2/loclists-multiple-cus/loclists-multiple-cus-dw32: Unknown DWARF DW_FORM_loclistx
dwz: /home/vries/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.dwarf2/loclists-multiple-cus/loclists-multiple-cus-dw32: Couldn't read abbrev at offset 0x64
...

AFAICT, these are two error message caused by the same problem.

The "Unknown DWARF DW_FORM_loclistx" is specific enough to filter out.

But the "Couldn't read abbrev at offset 0x64" isn't.

It would be better if there was only one, specific error message for this.