[Lldb-commits] [lldb] r228216 - Update documenation for the changed in from ${var.script:<pythonfunction>} to the new ${script.var:<pythonfunction>}.

Greg Clayton gclayton at apple.com
Wed Feb 4 14:24:47 PST 2015


Author: gclayton
Date: Wed Feb  4 16:24:47 2015
New Revision: 228216

URL: http://llvm.org/viewvc/llvm-project?rev=228216&view=rev
Log:
Update documenation for the changed in from ${var.script:<pythonfunction>} to the new ${script.var:<pythonfunction>}.


Modified:
    lldb/trunk/source/Core/FormatEntity.cpp
    lldb/trunk/www/varformats.html

Modified: lldb/trunk/source/Core/FormatEntity.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/FormatEntity.cpp?rev=228216&r1=228215&r2=228216&view=diff
==============================================================================
--- lldb/trunk/source/Core/FormatEntity.cpp (original)
+++ lldb/trunk/source/Core/FormatEntity.cpp Wed Feb  4 16:24:47 2015
@@ -2261,7 +2261,7 @@ FormatEntity::ParseInternal (llvm::Strin
                                             entry.number = ValueObject::eValueObjectRepresentationStyleName;
                                             clear_printf = true;
                                             break;
-                                        case '>': // if this is a '>', print the name
+                                        case '>': // if this is a '>', print the expression path
                                             entry.number = ValueObject::eValueObjectRepresentationStyleExpressionPath;
                                             clear_printf = true;
                                             break;

Modified: lldb/trunk/www/varformats.html
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/www/varformats.html?rev=228216&r1=228215&r2=228216&view=diff
==============================================================================
--- lldb/trunk/www/varformats.html (original)
+++ lldb/trunk/www/varformats.html Wed Feb  4 16:24:47 2015
@@ -559,17 +559,26 @@
                     <td><b>%T</b></td>
                     <td>Use this object's datatype name</td>
                   </tr>
+                  <tr valign="top">
+                    <td><b>%N</b></td>
+                    <td>Print the variable's basename</td>
+                  </tr>
+                  <tr valign="top">
+                    <td><b>%></b></td>
+                    <td>Print the expression path for this item</td>
+                  </tr>
 				</tbody>
 			</table>
                 
-                <p>Starting with SVN r220821, you can also specify ${var.script:<i>pythonFuncName</i>}.
+                <p>Starting with SVN r228207, you can also specify ${script.var:<i>pythonFuncName</i>}. Previously, back to r220821, this was
+                    specified with a different syntax: ${var.script:<i>pythonFuncName</i>}.
                   <br/>It is expected that the function name you use specifies a function whose signature is the same
                   as a Python summary function. The return string from the function will be placed verbatim in the output.
                   <br/><br/>
                   You cannot use element access, or formatting symbols, in combination with this syntax. For example the following:
                   <table class="stats" width="620" cellspacing="0">
                           <td class="content">
-                          	${var.element[0].script:myFunctionName%@}
+                          	${script.var.element[0]:myFunctionName%@}
                           </td>
                   <table>
                   is not valid and will cause the summary to fail to evaluate.





More information about the lldb-commits mailing list