This is an archive of the discontinued LLVM Phabricator instance.

Add new API to SBTarget and SBModule classes.
ClosedPublic

Authored by apolyakov on Jun 30 2018, 4:59 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

apolyakov created this revision.Jun 30 2018, 4:59 AM

This seems like a reasonable addition. Could you also add documentation for the new API?

needs a test, but looks good.

apolyakov updated this revision to Diff 153817.Jul 2 2018, 3:39 PM

Added documentation and tests.

aprantl accepted this revision.Jul 2 2018, 3:44 PM
aprantl added inline comments.
include/lldb/API/SBModule.h
136 ↗(On Diff #153817)

We typically use \param instead of @param in LLVM.

packages/Python/lldbsuite/test/python_api/module_section/TestModuleAndSection.py
151 ↗(On Diff #153817)

shouldn't this be self.getBuildArtifact('b.out')?

packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py
54 ↗(On Diff #153817)

shouldn't this be self.getBuildArtifact('b.out')?

This revision is now accepted and ready to land.Jul 2 2018, 3:44 PM
apolyakov added inline comments.Jul 2 2018, 3:49 PM
packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py
54 ↗(On Diff #153817)

Do you mean: shouldn't self.getBuildArtifact be as a find_compile_units parameter?

apolyakov added inline comments.Jul 2 2018, 3:53 PM
include/lldb/API/SBModule.h
136 ↗(On Diff #153817)

I did it like it's done in other places in lldb. Are you sure about \param and @param?

jingham added a subscriber: jingham.Jul 2 2018, 4:02 PM

Alex is right, lldb uses @param everywhere.

Fre

packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py
54 ↗(On Diff #153817)

self.find_compile_units(self.getBuildArtifact('b.out'))

apolyakov updated this revision to Diff 153846.Jul 2 2018, 6:59 PM

Updated passing an argument to find_compile_units function.

This revision was automatically updated to reflect the committed changes.