[Lldb-commits] [lldb] r121999 - /lldb/trunk/include/lldb/Target/Process.h

Greg Clayton gclayton at apple.com
Thu Dec 16 12:15:34 PST 2010


Author: gclayton
Date: Thu Dec 16 14:15:34 2010
New Revision: 121999

URL: http://llvm.org/viewvc/llvm-project?rev=121999&view=rev
Log:
Added header doc for the recently added Process::ReadUnsignedInteger (addr_t addr, size_t int_byte_size, Error &error) function.

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

Modified: lldb/trunk/include/lldb/Target/Process.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/Process.h?rev=121999&r1=121998&r2=121999&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Target/Process.h (original)
+++ lldb/trunk/include/lldb/Target/Process.h Thu Dec 16 14:15:34 2010
@@ -1336,9 +1336,33 @@
                 size_t size,
                 Error &error);
 
+    //------------------------------------------------------------------
+    /// Reads an unsigned integer of the specified byte size from 
+    /// process memory.
+    ///
+    /// @param[in] load_addr
+    ///     A load address of the integer to read.
+    ///
+    /// @param[in] byte_size
+    ///     The size in byte of the integer 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 unsigned integer that was read from the process memory
+    ///     space. If the integer was smaller than a uint64_t, any
+    ///     unused upper bytes will be zero filled. If the process
+    ///     byte order differs from the host byte order, the integer
+    ///     value will be appropriately byte swapped into host byte
+    ///     order.
+    //------------------------------------------------------------------
     uint64_t
-    ReadUnsignedInteger (lldb::addr_t vm_addr, 
-                         size_t integer_byte_size,
+    ReadUnsignedInteger (lldb::addr_t load_addr, 
+                         size_t byte_size,
                          Error &error);
     //------------------------------------------------------------------
     /// Actually do the writing of memory to a process.





More information about the lldb-commits mailing list