This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Extend Python convenience variable table with equivalent APIs
ClosedPublic

Authored by JDevlieghere on Mar 2 2021, 9:32 AM.

Details

Summary

Add a column to the table of convenience variables with the equivalent API to get to the current debugger, target, process, etc. We often get asked to make convenience variables available outside of the interactive interpreter. After explaining why that's not possible, a common complaint is that it's hard to find out how to get to these variables in a non-interactive context, for example how to get to the current frame when given a thread.. This patch aims to alleviate that by including the APIs to navigate between these instances in the table.

Diff Detail

Event Timeline

JDevlieghere requested review of this revision.Mar 2 2021, 9:32 AM
JDevlieghere created this revision.
mib accepted this revision.Mar 2 2021, 9:37 AM
mib added a subscriber: mib.

Cool! LGTM!

This revision is now accepted and ready to land.Mar 2 2021, 9:37 AM

Use backticks (everywhere)

Use single backtick so Sphinx automatically links the API docs.

teemperor accepted this revision.Mar 2 2021, 1:42 PM
This revision was landed with ongoing or failed builds.Mar 2 2021, 4:14 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2021, 4:14 PM