Skip to content

Commit 69b464d

Browse files
committed
Add additional LLDB plugin example
1 parent 65cfdea commit 69b464d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/debuginfo/lldb-internals.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Here are some existing implementations of LLDB's plugin API:
1515
* [Apple's fork with support for Swift](https://github.com/swiftlang/llvm-project)
1616
* [CodeLLDB's former fork with support for Rust](https://archive.softwareheritage.org/browse/origin/directory/?branch=refs/heads/codelldb/16.x&origin_url=https://github.com/vadimcn/llvm-project&path=lldb/source/Plugins/TypeSystem/Rust&timestamp=2023-09-11T04:55:10Z)
1717
* [A work in progress reimplementation of Rust support](https://github.com/Walnut356/llvm-project/tree/lldbrust/19.x)
18+
* [A Rust expression parser plugin](https://github.com/tromey/lldb/tree/a0fc10ce0dacb3038b7302fff9f6cb8cb34b37c6/source/Plugins/ExpressionParser/Rust).
19+
This was written before the `TypeSystem` API was created. Due to the freeform nature of expression parsing, the
20+
underlyng lexing, parsing, function calling, etc. should still offer valuable insights.
1821

1922
## Rust Support and TypeSystemClang
2023

src/debuginfo/rust-codegen.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Using the `const` qualifier to denote non-`mut` poses potential issues due to LL
5656
optimizations. In short, LLDB attempts to cache the child-values of variables (e.g. struct fields,
5757
array elements) when stepping through code. A heuristic is used to determine which values are safely
5858
cache-able, and `const` is part of that heuristic. Research has not been done into how this would
59-
interact with things like Rust's interrior mutability constructs.
59+
interact with things like Rust's interior mutability constructs.
6060

6161
### DWARF vs PDB
6262

0 commit comments

Comments
 (0)