-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
During the implementation of DWARF debugging information support for GraalWasm, the idea of a common base library for DWARF on the GraalVM arose. This is mainly motivated by the fact that SVM, Sulong, and GraalWasm have a lot of code duplication in regard to the DWARF debugging information format. Especially encoding information like tags, attributes, and value encodings are present in all three locations. While SVM generates DWARF information, Sulong and GraalWasm read DWARF information.
Since I only know the requirements for GraalWasm, and I am not an experts in regard to DWARF, this should be the start of a discussion about if a common base library for DWARF on the GraalVM would be useful and how such a library could look like so that all three implementations can share as much code as possible.
The big advantage of a common base library for DWARF would be that changes, like supporting a new DWARF version or fixing a bug, would only have to be implemented in one location with little adjustment effort in the individual suites.