[PATCH] D49251: [process] Update the documentation for ReadMemory and DoReadMemory to include the error parameter

Stella Stamenova via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 12 14:33:08 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL336948: [process] Update the documentation for ReadMemory and DoReadMemory to include… (authored by stella.stamenova, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D49251?vs=155204&id=155277#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D49251

Files:
  lldb/trunk/include/lldb/Target/Process.h


Index: lldb/trunk/include/lldb/Target/Process.h
===================================================================
--- lldb/trunk/include/lldb/Target/Process.h
+++ lldb/trunk/include/lldb/Target/Process.h
@@ -1696,8 +1696,15 @@
   ///     A byte buffer that is at least \a size bytes long that
   ///     will receive the memory bytes.
   ///
+  /// @param[out] error
+  ///     An error that indicates the success or failure of this
+  ///     operation. If error indicates success (error.Success()),
+  ///     then the value returned can be trusted, otherwise zero
+  ///     will be returned.
+  ///
   /// @return
   ///     The number of bytes that were actually read into \a buf.
+  ///     Zero is returned in the case of an error.
   //------------------------------------------------------------------
   virtual size_t DoReadMemory(lldb::addr_t vm_addr, void *buf, size_t size,
                               Status &error) = 0;
@@ -1723,12 +1730,18 @@
   /// @param[in] size
   ///     The number of bytes to read.
   ///
+  /// @param[out] error
+  ///     An error that indicates the success or failure of this
+  ///     operation. If error indicates success (error.Success()),
+  ///     then the value returned can be trusted, otherwise zero
+  ///     will be returned.
+  ///
   /// @return
   ///     The number of bytes that were actually read into \a buf. If
   ///     the returned number is greater than zero, yet less than \a
   ///     size, then this function will get called again with \a
   ///     vm_addr, \a buf, and \a size updated appropriately. Zero is
-  ///     returned to indicate an error.
+  ///     returned in the case of an error.
   //------------------------------------------------------------------
   virtual size_t ReadMemory(lldb::addr_t vm_addr, void *buf, size_t size,
                             Status &error);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49251.155277.patch
Type: text/x-patch
Size: 1868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180712/0bbe7ad4/attachment.bin>


More information about the llvm-commits mailing list