This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Make some functions useful to REPLs public
ClosedPublic

Authored by wallace on May 2 2023, 7:21 PM.

Details

Summary

StartEventHandlerThread and StopEventHandlerThread are available to the SwiftREPL even though they are protected because SwiftREPL is a friend class of Debugger. I'm developing my own REPL and having access to these functions, including FlushProcessOutput, is desirable.

Diff Detail

Event Timeline

wallace created this revision.May 2 2023, 7:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 2 2023, 7:21 PM
wallace requested review of this revision.May 2 2023, 7:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 2 2023, 7:21 PM
bulbazord added inline comments.
lldb/include/lldb/Core/Debugger.h
503–504

There are program that use LLDB as a library but go through the SBAPI instead of lldb_private. Could you update this comment to be more specific about the intentions here? I assume you mean things like plugins.

wallace added inline comments.May 3 2023, 9:56 AM
lldb/include/lldb/Core/Debugger.h
503–504

sure

wallace updated this revision to Diff 519141.May 3 2023, 10:00 AM

address comment

JDevlieghere added inline comments.May 4 2023, 9:31 AM
lldb/include/lldb/Core/Debugger.h
505
508–509

used by programs is rather vague.

512
wallace updated this revision to Diff 519542.May 4 2023, 9:49 AM

address comments

This revision is now accepted and ready to land.May 4 2023, 10:34 AM
JDevlieghere accepted this revision.May 4 2023, 10:48 AM
This revision was automatically updated to reflect the committed changes.