[Lldb-commits] [PATCH] D149717: [lldb] Make some functions useful to REPLs public
walter erquinigo via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed May 3 10:00:31 PDT 2023
wallace updated this revision to Diff 519141.
wallace added a comment.
address comment
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149717/new/
https://reviews.llvm.org/D149717
Files:
lldb/include/lldb/Core/Debugger.h
Index: lldb/include/lldb/Core/Debugger.h
===================================================================
--- lldb/include/lldb/Core/Debugger.h
+++ lldb/include/lldb/Core/Debugger.h
@@ -500,6 +500,20 @@
SetDestroyCallback(lldb_private::DebuggerDestroyCallback destroy_callback,
void *baton);
+ /// Manually start the global event handler thread. It is useful to plugins
+ /// that directly use the \a lldb_private namespace and want to use the
+ /// default LLDB event handler thread instead of defining their own.
+ bool StartEventHandlerThread();
+
+ /// Stop the global event handler thread. It should only be used by programs
+ /// that manually invoked \a Debugger::StartEventHandlerThread().
+ void StopEventHandlerThread();
+
+ /// Force flushing the process's pending stdout and stderr to the debuggers'
+ /// asynchronous stdout and stderr streams.
+ void FlushProcessOutput(Process &process, bool flush_stdout,
+ bool flush_stderr);
+
protected:
friend class CommandInterpreter;
friend class REPL;
@@ -548,10 +562,6 @@
void PrintProgress(const ProgressEventData &data);
- bool StartEventHandlerThread();
-
- void StopEventHandlerThread();
-
void PushIOHandler(const lldb::IOHandlerSP &reader_sp,
bool cancel_top_handler = true);
@@ -587,8 +597,6 @@
// Ensures two threads don't attempt to flush process output in parallel.
std::mutex m_output_flush_mutex;
- void FlushProcessOutput(Process &process, bool flush_stdout,
- bool flush_stderr);
SourceManager::SourceFileCache &GetSourceFileCache() {
return m_source_file_cache;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149717.519141.patch
Type: text/x-patch
Size: 1686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230503/59b90ff6/attachment-0001.bin>
More information about the lldb-commits
mailing list