This is an archive of the discontinued LLVM Phabricator instance.

[lldb][COFF] Improve info of symbols from export table
ClosedPublic

Authored by alvinhochun on Sep 20 2022, 1:54 AM.

Details

Summary
  • 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.

Depends on D134196

Event Timeline

alvinhochun created this revision.Sep 20 2022, 1:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 1:54 AM
alvinhochun requested review of this revision.Sep 20 2022, 1:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 1:54 AM

Looks good to me in general. Do any of the changes make a functional difference, or is it just improved (and less misleading) display to the user of the debugger?

This comment was removed by alvinhochun.

I think marking the symbol as Data instead of Code does have an effect on commands that look for functions (e.g. "disassemble" will not disassemble a Data symbol, which makes sense). For the rest of the changes I think they are only visible in the symtab dump.

(Sorry, I got confused and made a mistake in my previous comment.)

labath accepted this revision.Sep 21 2022, 6:55 AM
This revision is now accepted and ready to land.Sep 21 2022, 6:55 AM

Updated to new test from parent

This revision was automatically updated to reflect the committed changes.