[lldb][COFF] Improve info of symbols from export table
authorAlvin Wong <alvin@alvinhc.com>
Wed, 28 Sep 2022 09:43:14 +0000 (12:43 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 28 Sep 2022 09:57:10 +0000 (12:57 +0300)
commit0870afc68e1a1ec303af1d0dbf952dd2c41f478a
treeda30e65bb9be07e158ca8d08a7542589bc7a9c55
parentbf0cda9ed2783a34efed3fc9804d784f7d1df242
[lldb][COFF] Improve info of symbols from export table

- Skip dummy/invalid export symbols.
- Make the export ordinal of export symbols visible when dumping the
  symtab.
- Stop setting the 'Debug' flag and set the 'External' flag instead to
  better match the meaning of export symbols.
- Try to guess the type (code vs data) of the symbol from section flags.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D134265
lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
lldb/test/Shell/ObjectFile/PECOFF/symbols-export-table.yaml