[Lldb-commits] [PATCH] Fix expression evaluation with logs (step + verbose) enabled.

Chaoren Lin chaorenl at google.com
Thu Mar 26 14:26:36 PDT 2015


Hi jingham, sivachandra,

The error is:
    error: Couldn't allocate space for materialized struct:
    Couldn't malloc: address space is full

It seems to be caused by StopInfoThreadPlan::ShouldStop calling
ThreadPlanCallFunction::ShouldStop after the thread plan has been taken down.

ReportRegisterState reads a bunch of (invalid?) register values and caches them.

http://reviews.llvm.org/D8643

Files:
  source/Target/ThreadPlanCallFunction.cpp

Index: source/Target/ThreadPlanCallFunction.cpp
===================================================================
--- source/Target/ThreadPlanCallFunction.cpp
+++ source/Target/ThreadPlanCallFunction.cpp
@@ -434,7 +434,8 @@
     
     if (IsPlanComplete())
     {
-        ReportRegisterState ("Function completed.  Register state was:");
+        if (!m_takedown_done)
+            ReportRegisterState ("Function completed.  Register state was:");
         return true;
     }
     else

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8643.22753.patch
Type: text/x-patch
Size: 490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150326/6a9f0f59/attachment.bin>


More information about the lldb-commits mailing list