Page MenuHomePhabricator

[lldb/API] Expose triple for SBProcessInfo.

Authored by brucem on May 30 2021, 3:36 AM.



This is present when doing a platform process list and is
tracked by the underlying code. To do something like the
process list via the SB API in the future, this must be

Diff Detail

Event Timeline

brucem requested review of this revision.May 30 2021, 3:36 AM
brucem created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 30 2021, 3:36 AM
teemperor added inline comments.

You need to 'instrument' these functions. there is a tool called lldb-instr you can build withint LLDB and you can run that over the file to generate the macro stuff for you.

teemperor removed subscribers: teemperor, JDevlieghere.
brucem added inline comments.May 30 2021, 4:49 AM

This has the LLDB_RECORD_METHOD_NO_ARGS already and is the same as the other methods in this file. (And it calls LLDB_REGISTER_METHOD as well...)

teemperor added inline comments.May 30 2021, 4:59 AM

My bad, I thought that we needed to put const char * inside a LLDB_RECORD_RESULT but apparently that's not the case (at least lldb-instr says it's not the case).

clayborg accepted this revision.Jun 1 2021, 3:56 PM
clayborg added a subscriber: clayborg.


This revision is now accepted and ready to land.Jun 1 2021, 3:56 PM
This revision was landed with ongoing or failed builds.Jun 1 2021, 9:35 PM
This revision was automatically updated to reflect the committed changes.