[Lldb-commits] [lldb] r161787 - /lldb/trunk/source/Target/StopInfo.cpp

Johnny Chen johnny.chen at apple.com
Mon Aug 13 14:19:12 PDT 2012


Author: johnny
Date: Mon Aug 13 16:19:11 2012
New Revision: 161787

URL: http://llvm.org/viewvc/llvm-project?rev=161787&view=rev
Log:
Comment changes.

Modified:
    lldb/trunk/source/Target/StopInfo.cpp

Modified: lldb/trunk/source/Target/StopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/StopInfo.cpp?rev=161787&r1=161786&r2=161787&view=diff
==============================================================================
--- lldb/trunk/source/Target/StopInfo.cpp (original)
+++ lldb/trunk/source/Target/StopInfo.cpp Mon Aug 13 16:19:11 2012
@@ -500,6 +500,7 @@
             {
                 if (!wp_sp->IsWatchVariable())
                 {
+                    // We are not watching a variable, just read from the process memory for the watched location.
                     assert (process);
                     Error error;
                     uint64_t val = process->ReadUnsignedIntegerFromMemory(wp_sp->GetLoadAddress(),
@@ -517,7 +518,7 @@
                 }
                 else if (!wp_sp->GetWatchSpec().empty())
                 {
-                    // Things have checked out ok...
+                    // Use our frame to evaluate the variable expression.
                     Error error;
                     uint32_t expr_path_options = StackFrame::eExpressionPathOptionCheckPtrVsMember |
                                                  StackFrame::eExpressionPathOptionsAllowDirectIVarAccess;





More information about the lldb-commits mailing list