This is an archive of the discontinued LLVM Phabricator instance.

[lldb][LocateModuleCallback] Update SBFileSpec/SBModuleSpec
ClosedPublic

Authored by splhack on Jun 25 2023, 6:14 PM.

Details

Summary

RFC https://discourse.llvm.org/t/rfc-python-callback-for-target-get-module/71580

SBFileSpec and SBModuleSpec will be used for locate module callback as Python
function arguments. This diff allows these things.

  • Can be instantiated from SBPlatform.
  • Can be passed to/from Python.
  • Can be accessed for object offset and size.

Diff Detail

Event Timeline

splhack created this revision.Jun 25 2023, 6:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2023, 6:14 PM
splhack requested review of this revision.Jun 25 2023, 6:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2023, 6:14 PM
splhack updated this revision to Diff 538660.Jul 10 2023, 8:26 AM

Fix LLDB_INSTRUMENT_VA args

splhack updated this revision to Diff 538662.Jul 10 2023, 8:31 AM

fix LLDB_INSTRUMENT_VA for SBModuleSpec constructor too

splhack updated this revision to Diff 539207.Jul 11 2023, 11:21 AM

sync with D153734 and D153735 changes

splhack retitled this revision from [lldb][TargetGetModuleCallback] Update SBFileSpec/SBModuleSpec to [lldb][LocateModuleCallback] Update SBFileSpec/SBModuleSpec.Jul 11 2023, 11:22 AM
splhack edited the summary of this revision. (Show Details)
splhack edited the summary of this revision. (Show Details)
clayborg accepted this revision.Jul 11 2023, 3:48 PM
This revision is now accepted and ready to land.Jul 11 2023, 3:48 PM