[Lldb-commits] [lldb] 5c0a721 - [lldb][NFC] Add documentation for OperatingSystem methods (#210968)

via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 27 01:11:31 PDT 2026


Author: Felipe de Azevedo Piovezan
Date: 2026-07-27T09:11:27+01:00
New Revision: 5c0a7212c8c8c46969489ae1ee85df1141a76bbb

URL: https://github.com/llvm/llvm-project/commit/5c0a7212c8c8c46969489ae1ee85df1141a76bbb
DIFF: https://github.com/llvm/llvm-project/commit/5c0a7212c8c8c46969489ae1ee85df1141a76bbb.diff

LOG: [lldb][NFC] Add documentation for OperatingSystem methods (#210968)

Added: 
    

Modified: 
    lldb/include/lldb/Target/OperatingSystem.h

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Target/OperatingSystem.h b/lldb/include/lldb/Target/OperatingSystem.h
index 128239569790f..f81a12fb8c5ab 100644
--- a/lldb/include/lldb/Target/OperatingSystem.h
+++ b/lldb/include/lldb/Target/OperatingSystem.h
@@ -49,10 +49,15 @@ class OperatingSystem : public PluginInterface {
 
   virtual void ThreadWasSelected(Thread *thread) = 0;
 
+  /// RegisterContextThreadMemory gets the RegisterContext from the backing
+  /// thread when it exists; when it doesn't, the OS plugin is used through
+  /// this API.
   virtual lldb::RegisterContextSP
   CreateRegisterContextForThread(Thread *thread,
                                  lldb::addr_t reg_data_addr) = 0;
 
+  /// ThreadMemory gets the StopReason from the backing thread when it exists;
+  /// when it doesn't, the OS plugin is used through this API.
   virtual lldb::StopInfoSP CreateThreadStopReason(Thread *thread) = 0;
 
   virtual lldb::ThreadSP CreateThread(lldb::tid_t tid, lldb::addr_t context) {


        


More information about the lldb-commits mailing list