[Lldb-commits] [lldb] [LLDB] Add user documentation for DIL. (PR #228275)

via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 6 13:53:29 PDT 2026


================
@@ -0,0 +1,315 @@
+# DIL: The Data Inspection Language
+
+This page explains the Data Inspection Language (DIL) in LLDB. Most of this
+document is intended for LLDB users, from both the command line and through IDEs
+(Integrated Development Environments), Data Formatters, and other scripting
+affordances (via the SB APIs). At the end there is some additional information
+for LLDB developers.
+
+## Background: What is DIL and why did we implement it?
+
+In the context of LLDB, an **expression path** is the structured syntax used to
+navigate and access specific fields, members, or elements within a data
+structure starting from a root variable. A **path expression** is an expression
+consisting entirely of such structured syntax (and starting from a root
+variable).
+
+LLDB has always had two modes for accessing values in your program: path
+expressions, that commands like `frame variable` could understand and interpret;
+and "other" expressions, which could contain path expressions, but usually also
+included other pieces written in a source language, and which could be passed to
+the `expression` (aka `expr`) command. These "other" expressions were evaluated
+using a language-accurate parser for that language, and the results were
+obtained by running code in the target program.
+
+LLDB's path expressions, however, are not necessarily a direct representation of
----------------
cmtice wrote:

That would be because I don't think *I* understand the difference. :-). Could you explain it please? 

https://github.com/llvm/llvm-project/pull/228275


More information about the lldb-commits mailing list