llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.87k stars 11.92k forks source link

[llvm-debuginfo-analyzer] Add support for CodeView public symbols stream. #69179

Open CarlosAlbertoEnciso opened 1 year ago

CarlosAlbertoEnciso commented 1 year ago

Extracted from llvm/tools/llvm-debuginfo-analyzer/README.txt https://reviews.llvm.org/D125783#inline-1294142

The CodeView reader use the public names information to create the instructions LVLineAssembler. Instead of relying on CodeView public symbol stream S_PUB32, the reader can collect the needed information while processing the debug information.

If the object file supports the above stream, use them to create the public names.

llvmbot commented 1 year ago

@llvm/issue-subscribers-debuginfo

Author: Carlos Alberto Enciso (CarlosAlbertoEnciso)

Extracted from [llvm/tools/llvm-debuginfo-analyzer/README.txt](https://github.com/llvm/llvm-project/blob/main/llvm/tools/llvm-debuginfo-analyzer/README.txt) https://reviews.llvm.org/D125783#inline-1294142 The `CodeView` reader use the public names information to create the instructions `LVLineAssembler`. Instead of relying on `CodeView` public symbol stream `S_PUB32`, the reader can collect the needed information while processing the debug information. If the object file supports the above stream, use them to create the public names.