dyninst/dwarf-error.patch

12 lines
496 B
Diff
Raw Normal View History

2022-02-07 22:01:36 +00:00
Remove extraneous error messages of the form:
err message: .debug_loclists section missing
err message: invalid DWARF
which are repeated in some circumstances without adding useful context
--- dyninst-12.0.1/symtabAPI/src/dwarfWalker.C
+++ dyninst-12.0.1/symtabAPI/src/dwarfWalker.C
@@ -1858,1 +1858,1 @@
- cerr << "err message: " << dwarf_errmsg(dwarf_errno()) << endl;
+ dwarf_printf("(0x%lx) Error while decoding location: %s\n", id(), dwarf_errmsg(dwarf_errno()));