Skip to content

[Debug Info] replace lldb_commands with __lldb_init_module#155336

Open
Walnut356 wants to merge 1 commit intorust-lang:mainfrom
Walnut356:lldb_init_module
Open

[Debug Info] replace lldb_commands with __lldb_init_module#155336
Walnut356 wants to merge 1 commit intorust-lang:mainfrom
Walnut356:lldb_init_module

Conversation

@Walnut356
Copy link
Copy Markdown
Contributor

@Walnut356 Walnut356 commented Apr 15, 2026

DO NOT MERGE. Please run through aarch64-apple. Ideally the tests fail. If they don't, the test runner is using too old of a version of LLDB and I need to fiddle with this some more.

TL;DR I hate lldb_commands, it's annoying to update and maintain since it's just a raw text file of CLI commands. All of the functionality can be replicated via the debugger's own API. __lldb_init_module is called immediately upon command script import lldb_lookup.py, so it should function identically (with one exception, see below). We can do things like let python tell us the names of the functions and classes, making them easier to keep in sync. Most importantly, we can conditionally use one set of visualizers or another depending on the version of the debugger. This is a precursor to using callback-based type matching, which was added in LLDB 19.

The one exception i mentioned above replaces our ".*" regex that dumps everything through lldb_lookup.synthetic_lookup. That wildcard also includes primitives which is less than ideal, especially for performance. It's bad enough that codelldb intercepts this command and replaces it with a type recognizer. If i remove lldb_commands, codelldb can no longer do this. To prevent a regression on their end, I added a conditional that replicates that behavior.

Here's the problem: for some godforsaken reason, if a struct contains a field with a SyntheticProvider (even one that is "empty", like for DefaultSyntheticProvider for primitives) it is formatted differently than a struct whose fields don't have providers. That breaks a bunch of the tests because instead of { x = 10 y = 30 } we get (x = 10, y = 30). Very cool.

So, we have divergent behavior depending on the version of LLDB. That's nothing new, since MSVC enums are broken prior to LLDB 18, so it's whatever (and the difference hardly matters to the end user). If the CI test runners have a new enough version of LLDB that it uses the type recognizer instead of the wildcard, the tests will fail. I'll update them and we'll be good to go. If they don't fail, I need to probably force a struct summary provider so that all versions look the same (which isn't ideal performance), or I can just wait until xcode happens to update to a newer version of LLDB.


try-job: aarch64-apple

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 15, 2026

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@rustbot rustbot added A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Apr 15, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 15, 2026

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @Mark-Simulacrum

@Walnut356
Copy link
Copy Markdown
Contributor Author

now that i think on it, apple's LLDB is a custom fork. I don't think the version extraction logic will work for it. Lemme fix that real quick.

@rust-log-analyzer

This comment has been minimized.

@jieyouxu
Copy link
Copy Markdown
Member

You should be able to run try jobs on this PR urself after this:
@bors delegate=try

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented Apr 15, 2026

✌️ @Walnut356, you can now perform try builds on this pull request!

You can now post @bors try to start a try build.

@Walnut356
Copy link
Copy Markdown
Contributor Author

rad, thank you

@rust-log-analyzer

This comment has been minimized.

@jieyouxu jieyouxu self-assigned this Apr 15, 2026
@Walnut356
Copy link
Copy Markdown
Contributor Author

@bors try jobs=aarch64-apple

rust-bors Bot pushed a commit that referenced this pull request Apr 15, 2026
[Debug Info] replace `lldb_commands` with `__lldb_init_module`


try-job: aarch64-apple
@rust-bors

This comment has been minimized.

@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 15, 2026
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented Apr 15, 2026

💔 Test for d52c8f9 failed: CI. Failed job:

@rust-log-analyzer
Copy link
Copy Markdown
Collaborator

The job aarch64-apple failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)

---- [debuginfo-lldb] tests/debuginfo/associated-types.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/associated-types.rs` not found in debugger output. errors:
    (associated-types.rs:42) `[...] { b = -1 b1 = 0 }`
    (associated-types.rs:56) `[...] (4, 5)`
the following subset of check directive(s) was found successfully:
    (associated-types.rs:46) `DEBUG: breakpoint added, id = 1`
    (associated-types.rs:48) `DEBUG: breakpoint added, id = 1`
    (associated-types.rs:52) `DEBUG: breakpoint added, id = 2`
    (associated-types.rs:60) `DEBUG: breakpoint added, id = 6`
    (associated-types.rs:62) `(long) b = 7 `
    (associated-types.rs:66) `(long) a = 8 `
    (associated-types.rs:68) `(int) b = 9 `
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/associated-types.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/associated-types.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'associated-types.rs' --line 96
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`associated_types::assoc_struct::<i32> + 20 at associated-types.rs:96:5, address = 0x0000000100000894 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'associated-types.rs' --line 103
DEBUG: breakpoint added, id = 2
Breakpoint 2: where = a`associated_types::assoc_local::<i32> + 112 at associated-types.rs:103:5, address = 0x0000000100000810 
DEBUG: registering breakpoint callback, id = 2
Error while trying to register breakpoint callback, id = 2, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'associated-types.rs' --line 107
DEBUG: breakpoint added, id = 3
Breakpoint 3: where = a`associated_types::assoc_arg::<i32> + 16 at associated-types.rs:107:5, address = 0x000000010000091c 
DEBUG: registering breakpoint callback, id = 3
Error while trying to register breakpoint callback, id = 3, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'associated-types.rs' --line 115
DEBUG: breakpoint added, id = 4
Breakpoint 4: where = a`associated_types::assoc_tuple::<i32> + 20 at associated-types.rs:115:5, address = 0x0000000100000854 
DEBUG: registering breakpoint callback, id = 4
Error while trying to register breakpoint callback, id = 4, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'associated-types.rs' --line 122
Breakpoint 5: where = a`associated_types::assoc_enum::<i32> + 84 at associated-types.rs:122:13, address = 0x0000000100000744 
breakpoint set --file 'associated-types.rs' --line 125
Breakpoint 6: where = a`associated_types::assoc_enum::<i32> + 56 at associated-types.rs:125:13, address = 0x0000000100000728 
DEBUG: breakpoint added, id = 5
DEBUG: breakpoint added, id = 6
run
Process 37791 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/a' (arm64) Process 37791 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000894 a`associated_types::assoc_struct::<i32>(arg=(b = -1, b1 = 0)) at associated-types.rs:96:5 93 } 94 95 fn assoc_struct<T: TraitWithAssocType>(arg: Struct<T>) { -> 96 zzz(); // #break ^ 97 } 98 99 fn assoc_local<T: TraitWithAssocType>(x: T) { Target 0: (a) stopped. 
DEBUG: registering breakpoint callback, id = 6
Error while trying to register breakpoint callback, id = 6, message = error: could not get num args: can't find callable: breakpoint_callback

DEBUG: registering breakpoint callback, id = 5
Error while trying to register breakpoint callback, id = 5, message = error: could not get num args: can't find callable: breakpoint_callback

v arg
(associated_types::Struct<int>) arg = (b = -1, b1 = 0) 
continue
v inferred
(long) inferred = 1 
v explicitly
(long) explicitly = 1 
continue
v arg
(long) arg = 2 
continue
v arg
((i32, i64)) arg = (__0 = 4, __1 = 5) 
continue
v a
(int) a = 6 
v b
(long) b = 7 
---
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/associated-types.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/borrowed-struct.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/borrowed-struct.rs` not found in debugger output. errors:
    (borrowed-struct.rs:36) `[...] { x = 10 y = 23.5 }`
    (borrowed-struct.rs:45) `[...] { x = 11 y = 24.5 }`
    (borrowed-struct.rs:48) `[...] { x = 13 y = 26.5 }`
the following subset of check directive(s) was found successfully:
    (borrowed-struct.rs:39) `(long) *stack_val_interior_ref_1 = 10 `
    (borrowed-struct.rs:42) `(double) *stack_val_interior_ref_2 = 23.5 `
    (borrowed-struct.rs:51) `(long) *unique_val_interior_ref_1 = 13 `
    (borrowed-struct.rs:54) `(double) *unique_val_interior_ref_2 = 26.5 `
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-struct.lldb/borrowed-struct.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-struct.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-struct.lldb/borrowed-struct.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-struct.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-struct.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'borrowed-struct.rs' --line 75
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`borrowed_struct::main + 424 at borrowed-struct.rs:75:5, address = 0x0000000100000a48 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 38237 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-struct.lldb/a' (arm64) Process 38237 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000a48 a`borrowed_struct::main at borrowed-struct.rs:75:5 72 let unique_val_interior_ref_1: &isize = &unique_val.x; 73 let unique_val_interior_ref_2: &f64 = &unique_val.y; 74 -> 75 zzz(); // #break ^ 76 } 77 78 fn zzz() {()} Target 0: (a) stopped. 
v *stack_val_ref
(borrowed_struct::SomeStruct) *stack_val_ref = (x = 10, y = 23.5) 
v *stack_val_interior_ref_1
(long) *stack_val_interior_ref_1 = 10 
v *stack_val_interior_ref_2
(double) *stack_val_interior_ref_2 = 23.5 
v *ref_to_unnamed
(borrowed_struct::SomeStruct) *ref_to_unnamed = (x = 11, y = 24.5) 
v *unique_val_ref
(borrowed_struct::SomeStruct) *unique_val_ref = (x = 13, y = 26.5) 
v *unique_val_interior_ref_1
(long) *unique_val_interior_ref_1 = 13 
v *unique_val_interior_ref_2
(double) *unique_val_interior_ref_2 = 26.5 
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/borrowed-struct.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/borrowed-tuple.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/borrowed-tuple.rs` not found in debugger output. errors:
    (borrowed-tuple.rs:24) `[...] (-14, -19)`
    (borrowed-tuple.rs:27) `[...] (-15, -20)`
    (borrowed-tuple.rs:30) `[...] (-17, -22)`
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/borrowed-tuple.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/borrowed-tuple.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'borrowed-tuple.rs' --line 43
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`borrowed_tuple::main + 220 at borrowed-tuple.rs:43:5, address = 0x000000010000097c 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 38497 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/a' (arm64) Process 38497 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x000000010000097c a`borrowed_tuple::main at borrowed-tuple.rs:43:5 40 let unique_val: Box<(i16, f32)> = Box::new((-17, -22f32)); 41 let unique_val_ref: &(i16, f32) = &*unique_val; 42 -> 43 zzz(); // #break ^ 44 } 45 46 fn zzz() {()} Target 0: (a) stopped. 
v *stack_val_ref
((i16, f32)) *stack_val_ref = (__0 = -14, __1 = -19) 
v *ref_to_unnamed
((i16, f32)) *ref_to_unnamed = (__0 = -15, __1 = -20) 
v *unique_val_ref
((i16, f32)) *unique_val_ref = (__0 = -17, __1 = -22) 
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/borrowed-tuple.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/box.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/box.rs` not found in debugger output. errors:
    (box.rs:21) `[...] (2, 3.5)`
the following subset of check directive(s) was found successfully:
    (box.rs:19) `DEBUG: breakpoint added, id = 1`
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/box.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/box.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'box.rs' --line 29
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`box::main + 256 at box.rs:29:5, address = 0x00000001000009cc 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 38556 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/a' (arm64) Process 38556 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x00000001000009cc a`box::main at box.rs:29:5 26 let a = Box::new(1); 27 let b = Box::new((2, 3.5f64)); 28 -> 29 zzz(); // #break ^ 30 } 31 32 fn zzz() { () } Target 0: (a) stopped. 
v *a
(int) *a = 1 
v *b
((i32, f64)) *b = (__0 = 2, __1 = 3.5) 
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/box.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/boxed-struct.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/boxed-struct.rs` not found in debugger output. errors:
    (boxed-struct.rs:21) `[...] { x = 99 y = 999 z = 9999 w = 99999 }`
    (boxed-struct.rs:24) `[...] { x = 77 y = 777 z = 7777 w = 77777 }`
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/boxed-struct.lldb/boxed-struct.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/boxed-struct.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/boxed-struct.lldb/boxed-struct.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/boxed-struct.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/boxed-struct.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'boxed-struct.rs' --line 61
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`boxed_struct::main + 332 at boxed-struct.rs:61:5, address = 0x0000000100000a70 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 38618 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/boxed-struct.lldb/a' (arm64) Process 38618 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000a70 a`boxed_struct::main at boxed-struct.rs:61:5 58 z: 7777, 59 w: 77777, 60 }); -> 61 zzz(); // #break ^ 62 } 63 64 fn zzz() { () } Target 0: (a) stopped. 
v *boxed_with_padding
(boxed_struct::StructWithSomePadding) *boxed_with_padding = (x = 99, y = 999, z = 9999, w = 99999) 
v *boxed_with_dtor
(boxed_struct::StructWithDestructor) *boxed_with_dtor = (x = 77, y = 777, z = 7777, w = 77777) 
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/boxed-struct.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/by-value-self-argument-in-trait-impl.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/by-value-self-argument-in-trait-impl.rs` not found in debugger output. errors:
    (by-value-self-argument-in-trait-impl.rs:31) `[...] { x = 2222 y = 3333 }`
    (by-value-self-argument-in-trait-impl.rs:35) `[...] (4444.5, 5555, 6666, 7777.5)`
the following subset of check directive(s) was found successfully:
    (by-value-self-argument-in-trait-impl.rs:27) `(long) self = 1111 `
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/by-value-self-argument-in-trait-impl.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/by-value-self-argument-in-trait-impl.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'by-value-self-argument-in-trait-impl.rs' --line 44
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`<isize as by_value_self_argument_in_trait_impl::Trait>::method + 20 at by-value-self-argument-in-trait-impl.rs:44:9, address = 0x0000000100000854 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'by-value-self-argument-in-trait-impl.rs' --line 56
DEBUG: breakpoint added, id = 2
Breakpoint 2: where = a`<by_value_self_argument_in_trait_impl::Struct as by_value_self_argument_in_trait_impl::Trait>::method + 28 at by-value-self-argument-in-trait-impl.rs:56:9, address = 0x00000001000008d0 
DEBUG: registering breakpoint callback, id = 2
Error while trying to register breakpoint callback, id = 2, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'by-value-self-argument-in-trait-impl.rs' --line 63
DEBUG: breakpoint added, id = 3
Breakpoint 3: where = a`<(f64, isize, isize, f64) as by_value_self_argument_in_trait_impl::Trait>::method + 20 at by-value-self-argument-in-trait-impl.rs:63:9, address = 0x000000010000087c 
DEBUG: registering breakpoint callback, id = 3
Error while trying to register breakpoint callback, id = 3, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 38658 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/a' (arm64) Process 38658 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000854 a`<isize as by_value_self_argument_in_trait_impl::Trait>::method(self=1111) at by-value-self-argument-in-trait-impl.rs:44:9 41 42 impl Trait for isize { 43 fn method(self) -> isize { -> 44 zzz(); // #break ^ 45 self 46 } 47 } Target 0: (a) stopped. 
v self
(long) self = 1111 
continue
v self
(by_value_self_argument_in_trait_impl::Struct) self = (x = 2222, y = 3333) 
continue
v self
((f64, isize, isize, f64)) self = (__0 = 4444.5, __1 = 5555, __2 = 6666, __3 = 7777.5) 
continue
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/by-value-self-argument-in-trait-impl.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/c-style-enum-in-composite.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/c-style-enum-in-composite.rs` not found in debugger output. errors:
    (c-style-enum-in-composite.rs:35) `[...] (0, OneHundred)`
    (c-style-enum-in-composite.rs:38) `[...] ((1, OneThousand), 2)`
    (c-style-enum-in-composite.rs:41) `[...] (OneThousand, MountainView, OneMillion, Vienna)`
    (c-style-enum-in-composite.rs:44) `[...] { a = 3 b = OneMillion c = 4 d = Toronto e = 5 }`
    (c-style-enum-in-composite.rs:47) `[...] { a = 6 b = OneHundred c = 7 d = Vienna e = 8 }`
    (c-style-enum-in-composite.rs:50) `[...] { a = OneMillion b = MountainView c = OneThousand d = Toronto }`
    (c-style-enum-in-composite.rs:53) `[...] ({a:OneHundred, b:Vienna}, 9)`
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/c-style-enum-in-composite.lldb/c-style-enum-in-composite.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/c-style-enum-in-composite.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/c-style-enum-in-composite.lldb/c-style-enum-in-composite.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/c-style-enum-in-composite.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/c-style-enum-in-composite.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'c-style-enum-in-composite.rs' --line 137
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`c_style_enum_in_composite::main + 192 at c-style-enum-in-composite.rs:137:5, address = 0x00000001000008dc 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 38663 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/c-style-enum-in-composite.lldb/a' (arm64) Process 38663 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x00000001000008dc a`c_style_enum_in_composite::main at c-style-enum-in-composite.rs:137:5 134 135 let struct_with_drop = (StructWithDrop { a: OneHundred, b: Vienna }, 9_i64); 136 -> 137 zzz(); // #break ^ 138 } 139 140 fn zzz() { () } Target 0: (a) stopped. 
v tuple_interior_padding
((i16, c_style_enum_in_composite::AnEnum)) tuple_interior_padding = (__0 = 0, __1 = OneHundred) 
v tuple_padding_at_end
(((u64, c_style_enum_in_composite::AnEnum), u64)) tuple_padding_at_end = { __0 = (__0 = 1, __1 = OneThousand) __1 = 2 } 
v tuple_different_enums
((c_style_enum_in_composite::AnEnum, c_style_enum_in_composite::AnotherEnum, c_style_enum_in_composite::AnEnum, c_style_enum_in_composite::AnotherEnum)) tuple_different_enums = (__0 = OneThousand, __1 = MountainView, __2 = OneMillion, __3 = Vienna) 
v padded_struct
(c_style_enum_in_composite::PaddedStruct) padded_struct = (a = 3, b = OneMillion, c = 4, d = Toronto, e = 5) 
v packed_struct
(c_style_enum_in_composite::PackedStruct) packed_struct = (a = 6, b = OneHundred, c = 7, d = Vienna, e = 8) 
v non_padded_struct
(c_style_enum_in_composite::NonPaddedStruct) non_padded_struct = (a = OneMillion, b = MountainView, c = OneThousand, d = Toronto) 
v struct_with_drop
((c_style_enum_in_composite::StructWithDrop, i64)) struct_with_drop = { __0 = (a = OneHundred, b = Vienna) __1 = 9 } 
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/c-style-enum-in-composite.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/captured-fields-1.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/captured-fields-1.rs` not found in debugger output. errors:
    (captured-fields-1.rs:42) `(captured_fields_1::main::{closure_env#4}) test = { my_var__my_field2 = 22 }`
    (captured-fields-1.rs:45) `(captured_fields_1::main::{closure_env#5}) test = { my_var = { my_field1 = 11 my_field2 = 22 } }`
the following subset of check directive(s) was found successfully:
    (captured-fields-1.rs:30) `(captured_fields_1::main::{closure_env#0}) test = { _ref__my_ref__my_field1 = 0x000000016fdfce60 } `
    (captured-fields-1.rs:33) `(captured_fields_1::main::{closure_env#1}) test = { _ref__my_ref__my_field2 = 0x000000016fdfce64 } `
    (captured-fields-1.rs:36) `(captured_fields_1::main::{closure_env#2}) test = { _ref__my_ref = 0x000000016fdfce68 } `
    (captured-fields-1.rs:39) `(captured_fields_1::main::{closure_env#3}) test = { my_ref = 0x000000016fdfce60 } `
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/captured-fields-1.lldb/captured-fields-1.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/captured-fields-1.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/captured-fields-1.lldb/captured-fields-1.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/captured-fields-1.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/captured-fields-1.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'captured-fields-1.rs' --line 63
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`captured_fields_1::main + 52 at captured-fields-1.rs:63:5, address = 0x0000000100000808 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'captured-fields-1.rs' --line 69
DEBUG: breakpoint added, id = 2
Breakpoint 2: where = a`captured_fields_1::main + 68 at captured-fields-1.rs:69:5, address = 0x0000000100000818 
DEBUG: registering breakpoint callback, id = 2
Error while trying to register breakpoint callback, id = 2, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'captured-fields-1.rs' --line 75
DEBUG: breakpoint added, id = 3
Breakpoint 3: where = a`captured_fields_1::main + 80 at captured-fields-1.rs:75:5, address = 0x0000000100000824 
DEBUG: registering breakpoint callback, id = 3
Error while trying to register breakpoint callback, id = 3, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'captured-fields-1.rs' --line 81
DEBUG: breakpoint added, id = 4
Breakpoint 4: where = a`captured_fields_1::main + 92 at captured-fields-1.rs:81:5, address = 0x0000000100000830 
DEBUG: registering breakpoint callback, id = 4
Error while trying to register breakpoint callback, id = 4, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'captured-fields-1.rs' --line 87
DEBUG: breakpoint added, id = 5
Breakpoint 5: where = a`captured_fields_1::main + 104 at captured-fields-1.rs:87:5, address = 0x000000010000083c 
DEBUG: registering breakpoint callback, id = 5
Error while trying to register breakpoint callback, id = 5, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'captured-fields-1.rs' --line 93
DEBUG: breakpoint added, id = 6
Breakpoint 6: where = a`captured_fields_1::main + 124 at captured-fields-1.rs:93:5, address = 0x0000000100000850 
DEBUG: registering breakpoint callback, id = 6
Error while trying to register breakpoint callback, id = 6, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 38782 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/captured-fields-1.lldb/a' (arm64) Process 38782 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000808 a`captured_fields_1::main at captured-fields-1.rs:63:5 60 let a = &mut my_ref.my_field1; 61 }; 62 -> 63 _zzz(); // #break ^ 64 65 let test = || { 66 let a = &my_ref.my_field2; Target 0: (a) stopped. 
v test
(captured_fields_1::main::{closure_env#0}) test = { _ref__my_ref__my_field1 = 0x000000016fdfce60 } 
continue
v test
(captured_fields_1::main::{closure_env#1}) test = { _ref__my_ref__my_field2 = 0x000000016fdfce64 } 
continue
v test
(captured_fields_1::main::{closure_env#2}) test = { _ref__my_ref = 0x000000016fdfce68 } 
continue
v test
(captured_fields_1::main::{closure_env#3}) test = { my_ref = 0x000000016fdfce60 } 
continue
v test
(captured_fields_1::main::{closure_env#4}) test = (my_var__my_field2 = 22) 
continue
v test
(captured_fields_1::main::{closure_env#5}) test = { my_var = (my_field1 = 11, my_field2 = 22) } 
continue
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/captured-fields-1.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/cross-crate-spans.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/cross-crate-spans.rs` not found in debugger output. errors:
    (cross-crate-spans.rs:38) `[...] (17, 17)`
    (cross-crate-spans.rs:46) `[...] (1212, 1212)`
the following subset of check directive(s) was found successfully:
    (cross-crate-spans.rs:40) `(unsigned int) a_variable = 123456789 `
    (cross-crate-spans.rs:42) `(double) another_variable = 123456789.5 `
    (cross-crate-spans.rs:48) `(unsigned int) a_variable = 123456789 `
    (cross-crate-spans.rs:50) `(double) another_variable = 123456789.5 `
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/cross-crate-spans.lldb/cross-crate-spans.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/cross-crate-spans.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/cross-crate-spans.lldb/cross-crate-spans.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/cross-crate-spans.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/cross-crate-spans.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
b cross_crate_spans.rs:12
DEBUG: breakpoint added, id = 1
Breakpoint 1: 2 locations. 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 39181 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/cross-crate-spans.lldb/a' (arm64) Process 39181 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x000000010000075c a`cross_crate_spans::generic_function::<u32>(val=17) at cross_crate_spans.rs:12:5 9 let result = (val.clone(), val.clone()); 10 let a_variable: u32 = 123456789; 11 let another_variable: f64 = 123456789.5; -> 12 zzz(); ^ 13 result 14 } 15 Target 0: (a) stopped. 
v result
((u32, u32)) result = (__0 = 17, __1 = 17) 
v a_variable
(unsigned int) a_variable = 123456789 
v another_variable
(double) another_variable = 123456789.5 
continue
v result
((i16, i16)) result = (__0 = 1212, __1 = 1212) 
v a_variable
(unsigned int) a_variable = 123456789 
v another_variable
(double) another_variable = 123456789.5 
continue
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/cross-crate-spans.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/destructured-fn-argument.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

---

DEBUG: registering breakpoint callback, id = 5
Error while trying to register breakpoint callback, id = 5, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-fn-argument.rs' --line 348
Breakpoint 8: where = a`destructured_fn_argument::one_struct_destructured_one_not + 44 at destructured-fn-argument.rs:348:5, address = 0x0000000100000d08 
breakpoint set --file 'destructured-fn-argument.rs' --line 352
DEBUG: breakpoint added, id = 8
DEBUG: breakpoint added, id = 9
Breakpoint 9: where = a`destructured_fn_argument::different_order_of_struct_fields + 28 at destructured-fn-argument.rs:352:5, address = 0x0000000100000d34 
DEBUG: registering breakpoint callback, id = 9
Error while trying to register breakpoint callback, id = 9, message = error: could not get num args: can't find callable: breakpoint_callback

DEBUG: registering breakpoint callback, id = 8
Error while trying to register breakpoint callback, id = 8, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-fn-argument.rs' --line 358
DEBUG: breakpoint added, id = 10
Breakpoint 10: where = a`destructured_fn_argument::complex_nesting + 84 at destructured-fn-argument.rs:358:5, address = 0x0000000100000ab4 
DEBUG: registering breakpoint callback, id = 10
Error while trying to register breakpoint callback, id = 10, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-fn-argument.rs' --line 362
DEBUG: breakpoint added, id = 11
Breakpoint 11: where = a`destructured_fn_argument::managed_box + 36 at destructured-fn-argument.rs:362:5, address = 0x00000001000008c0 
DEBUG: registering breakpoint callback, id = 11
Error while trying to register breakpoint callback, id = 11, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-fn-argument.rs' --line 366
DEBUG: breakpoint added, id = 12
Breakpoint 12: where = a`destructured_fn_argument::borrowed_pointer + 36 at destructured-fn-argument.rs:366:5, address = 0x0000000100000b0c 
DEBUG: registering breakpoint callback, id = 12
Error while trying to register breakpoint callback, id = 12, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-fn-argument.rs' --line 370
DEBUG: breakpoint added, id = 13
Breakpoint 13: where = a`destructured_fn_argument::contained_borrowed_pointer + 32 at destructured-fn-argument.rs:370:5, address = 0x0000000100000c60 
DEBUG: registering breakpoint callback, id = 13
Error while trying to register breakpoint callback, id = 13, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-fn-argument.rs' --line 374
DEBUG: breakpoint added, id = 14
Breakpoint 14: where = a`destructured_fn_argument::unique_pointer + 104 at destructured-fn-argument.rs:374:5, address = 0x0000000100000a10 
DEBUG: registering breakpoint callback, id = 14
Error while trying to register breakpoint callback, id = 14, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-fn-argument.rs' --line 378
Breakpoint 15: where = a`destructured_fn_argument::ref_binding + 16 at destructured-fn-argument.rs:378:5, address = 0x00000001000008e0 
breakpoint set --file 'destructured-fn-argument.rs' --line 382
DEBUG: breakpoint added, id = 15
DEBUG: breakpoint added, id = 16
Breakpoint 16: where = a`destructured_fn_argument::ref_binding_in_tuple + 36 at destructured-fn-argument.rs:382:5, address = 0x0000000100000b98 
DEBUG: registering breakpoint callback, id = 16
Error while trying to register breakpoint callback, id = 16, message = error: could not get num args: can't find callable: breakpoint_callback

DEBUG: registering breakpoint callback, id = 15
Error while trying to register breakpoint callback, id = 15, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-fn-argument.rs' --line 386
DEBUG: breakpoint added, id = 17
Breakpoint 17: where = a`destructured_fn_argument::ref_binding_in_struct + 32 at destructured-fn-argument.rs:386:5, address = 0x0000000100000bf4 
DEBUG: registering breakpoint callback, id = 17
Error while trying to register breakpoint callback, id = 17, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-fn-argument.rs' --line 390
DEBUG: breakpoint added, id = 18
Breakpoint 18: where = a`destructured_fn_argument::univariant_enum + 20 at destructured-fn-argument.rs:390:5, address = 0x0000000100000ad8 
DEBUG: registering breakpoint callback, id = 18
Error while trying to register breakpoint callback, id = 18, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-fn-argument.rs' --line 394
DEBUG: breakpoint added, id = 19
Breakpoint 19: where = a`destructured_fn_argument::univariant_enum_with_ref_binding + 24 at destructured-fn-argument.rs:394:5, address = 0x0000000100000d5c 
DEBUG: registering breakpoint callback, id = 19
Error while trying to register breakpoint callback, id = 19, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-fn-argument.rs' --line 398
Breakpoint 20: where = a`destructured_fn_argument::tuple_struct + 28 at destructured-fn-argument.rs:398:5, address = 0x000000010000096c 
breakpoint set --file 'destructured-fn-argument.rs' --line 402
DEBUG: breakpoint added, id = 20
Breakpoint 21: where = a`destructured_fn_argument::tuple_struct_with_ref_binding + 40 at destructured-fn-argument.rs:402:5, address = 0x0000000100000ccc 
DEBUG: registering breakpoint callback, id = 20
DEBUG: breakpoint added, id = 21
Error while trying to register breakpoint callback, id = 20, message = error: could not get num args: can't find callable: breakpoint_callback

DEBUG: registering breakpoint callback, id = 21
Error while trying to register breakpoint callback, id = 21, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-fn-argument.rs' --line 406
Breakpoint 22: where = a`destructured_fn_argument::multiple_arguments + 32 at destructured-fn-argument.rs:406:5, address = 0x0000000100000b3c 
breakpoint set --file 'destructured-fn-argument.rs' --line 434
Breakpoint 23: where = a`destructured_fn_argument::main::nested_function + 32 at destructured-fn-argument.rs:434:9, address = 0x00000001000012a4 
DEBUG: breakpoint added, id = 22
DEBUG: breakpoint added, id = 23
run
Process 39306 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-fn-argument.lldb/a' (arm64) Process 39306 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000940 a`destructured_fn_argument::simple_tuple((null)=(__0 = 1, __1 = false)) at destructured-fn-argument.rs:320:5 317 318 319 fn simple_tuple((a, b): (isize, bool)) { -> 320 zzz(); // #break ^ 321 } 322 323 fn nested_tuple((a, (b, c)): (isize, (u16, u16))) { Target 0: (a) stopped. 
DEBUG: registering breakpoint callback, id = 23
Error while trying to register breakpoint callback, id = 23, message = error: could not get num args: can't find callable: breakpoint_callback

DEBUG: registering breakpoint callback, id = 22
Error while trying to register breakpoint callback, id = 22, message = error: could not get num args: can't find callable: breakpoint_callback

v a
---
continue
v a
(long) a = 5 
v b
((u32, u32)) b = (__0 = 6, __1 = 7) 
continue
v h
(short) h = 8 
v i
(destructured_fn_argument::Struct) i = (a = 9, b = 10) 
v j
(short) j = 11 
continue
v k
(long) k = 12 
v l
(int) l = 13 
---
(long) p = 19 
v q
(int) q = 20 
v r
(destructured_fn_argument::Struct) r = (a = 21, b = 22) 
continue
v s
(int) s = 24 
v t
(long) t = 23 
---
(int) z = 30 
v ae
(long) ae = 31 
v oe
(int) oe = 32 
v ue
(unsigned short) ue = 33 
continue
v aa
((isize, isize)) aa = (__0 = 34, __1 = 35) 
continue
v bb
((isize, isize)) bb = (__0 = 36, __1 = 37) 
continue
v cc
(long) cc = 38 
continue
v dd
((isize, isize, isize)) dd = (__0 = 40, __1 = 41, __2 = 42) 
continue
v *ee
((isize, isize, isize)) *ee = (__0 = 43, __1 = 44, __2 = 45) 
continue
v *ff
(long) *ff = 46 
v gg
((isize, isize)) gg = (__0 = 47, __1 = 48) 
continue
v *hh
(int) *hh = 50 
continue
v ii
(int) ii = 51 
continue
v *jj
(int) *jj = 52 
continue
v kk
(double) kk = 53 
v ll
(long) ll = 54 
continue
v mm
(double) mm = 55 
v *nn
(long) *nn = 56 
continue
v oo
(long) oo = 57 
v pp
(long) pp = 58 
v qq
(long) qq = 59 
continue
v rr
(long) rr = 60 
v ss
(long) ss = 61 
v tt
(long) tt = 62 
continue
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/destructured-fn-argument.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/destructured-for-loop-variable.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/destructured-for-loop-variable.rs` not found in debugger output. errors:
    (destructured-for-loop-variable.rs:137) `[...] { x = 3537 y = 35437.5 z = true }`
    (destructured-for-loop-variable.rs:141) `[...] (34903493, 232323)`
the following subset of check directive(s) was found successfully:
    (destructured-for-loop-variable.rs:82) `(short) x = 400 `
    (destructured-for-loop-variable.rs:84) `(float) y = 401.5 `
    (destructured-for-loop-variable.rs:86) `(bool) z = true `
    (destructured-for-loop-variable.rs:91) `(char) _i8 = 0x6f `
    (destructured-for-loop-variable.rs:93) `(unsigned char) _u8 = 0x70 `
    (destructured-for-loop-variable.rs:95) `(short) _i16 = -113 `
    (destructured-for-loop-variable.rs:97) `(unsigned short) _u16 = 114 `
    (destructured-for-loop-variable.rs:99) `(int) _i32 = -115 `
    (destructured-for-loop-variable.rs:101) `(unsigned int) _u32 = 116 `
    (destructured-for-loop-variable.rs:103) `(long) _i64 = -117 `
    (destructured-for-loop-variable.rs:105) `(unsigned long) _u64 = 118 `
    (destructured-for-loop-variable.rs:107) `(float) _f32 = 119.5 `
    (destructured-for-loop-variable.rs:109) `(double) _f64 = 120.5 `
    (destructured-for-loop-variable.rs:114) `(int) v1 = 80000 `
    (destructured-for-loop-variable.rs:116) `(short) x1 = 8000 `
    (destructured-for-loop-variable.rs:118) `(float) *y1 = 80001.5 `
    (destructured-for-loop-variable.rs:120) `(bool) z1 = false `
    (destructured-for-loop-variable.rs:122) `(short) *x2 = -30000 `
    (destructured-for-loop-variable.rs:124) `(float) y2 = -300001.5 `
    (destructured-for-loop-variable.rs:126) `(bool) *z2 = true `
    (destructured-for-loop-variable.rs:128) `(double) v2 = 854237.5 `
    (destructured-for-loop-variable.rs:133) `(int) i = 1234 `
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-for-loop-variable.lldb/destructured-for-loop-variable.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-for-loop-variable.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-for-loop-variable.lldb/destructured-for-loop-variable.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-for-loop-variable.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-for-loop-variable.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'destructured-for-loop-variable.rs' --line 162
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`destructured_for_loop_variable::main + 152 at destructured-for-loop-variable.rs:162:9, address = 0x0000000100000cc0 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-for-loop-variable.rs' --line 169
DEBUG: breakpoint added, id = 2
Breakpoint 2: where = a`destructured_for_loop_variable::main + 440 at destructured-for-loop-variable.rs:169:9, address = 0x0000000100000de0 
DEBUG: registering breakpoint callback, id = 2
Error while trying to register breakpoint callback, id = 2, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-for-loop-variable.rs' --line 190
DEBUG: breakpoint added, id = 3
Breakpoint 3: where = a`destructured_for_loop_variable::main + 1676 at destructured-for-loop-variable.rs:190:9, address = 0x00000001000012b4 
DEBUG: registering breakpoint callback, id = 3
Error while trying to register breakpoint callback, id = 3, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'destructured-for-loop-variable.rs' --line 194
Breakpoint 4: where = a`destructured_for_loop_variable::main + 968 at destructured-for-loop-variable.rs:194:9, address = 0x0000000100000ff0 
breakpoint set --file 'destructured-for-loop-variable.rs' --line 203
Breakpoint 5: where = a`destructured_for_loop_variable::main + 1280 at destructured-for-loop-variable.rs:203:7, address = 0x0000000100001128 
breakpoint set --file 'destructured-for-loop-variable.rs' --line 207
Breakpoint 6: where = a`destructured_for_loop_variable::main + 1564 at destructured-for-loop-variable.rs:207:7, address = 0x0000000100001244 
type format add --format hex char
type format add --format hex 'unsigned char'
DEBUG: breakpoint added, id = 4
DEBUG: breakpoint added, id = 5
DEBUG: breakpoint added, id = 6
run
Process 39349 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-for-loop-variable.lldb/a' (arm64) Process 39349 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000cc0 a`destructured_for_loop_variable::main at destructured-for-loop-variable.rs:162:9 159 }; 160 161 for &Struct { x, y, z } in &[s] { -> 162 zzz(); // #break ^ 163 } 164 165 let tuple: (i8, u8, i16, u16, i32, u32, i64, u64, f32, f64) = Target 0: (a) stopped. 
DEBUG: registering breakpoint callback, id = 6
Error while trying to register breakpoint callback, id = 6, message = error: could not get num args: can't find callable: breakpoint_callback

DEBUG: registering breakpoint callback, id = 5
Error while trying to register breakpoint callback, id = 5, message = error: could not get num args: can't find callable: breakpoint_callback

DEBUG: registering breakpoint callback, id = 4
Error while trying to register breakpoint callback, id = 4, message = error: could not get num args: can't find callable: breakpoint_callback

v x
(short) x = 400 
v y
(float) y = 401.5 
v z
(bool) z = true 
continue
v _i8
(char) _i8 = 0x6f 
v _u8
(unsigned char) _u8 = 0x70 
v _i16
(short) _i16 = -113 
v _u16
(unsigned short) _u16 = 114 
v _i32
(int) _i32 = -115 
v _u32
(unsigned int) _u32 = 116 
v _i64
(long) _i64 = -117 
v _u64
(unsigned long) _u64 = 118 
v _f32
(float) _f32 = 119.5 
v _f64
(double) _f64 = 120.5 
continue
v v1
(int) v1 = 80000 
v x1
(short) x1 = 8000 
v *y1
(float) *y1 = 80001.5 
v z1
(bool) z1 = false 
v *x2
(short) *x2 = -30000 
v y2
(float) y2 = -300001.5 
v *z2
(bool) *z2 = true 
v v2
(double) v2 = 854237.5 
continue
v i
(int) i = 1234 
continue
v simple_struct_ident
(destructured_for_loop_variable::Struct) simple_struct_ident = (x = 3537, y = 35437.5, z = true) 
continue
v simple_tuple_ident
((u32, i64)) simple_tuple_ident = (__0 = 34903493, __1 = 232323) 
continue
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/destructured-for-loop-variable.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/destructured-local.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/destructured-local.rs` not found in debugger output. errors:
    (destructured-local.rs:139) `[...] (6, 7)`
    (destructured-local.rs:144) `[...] { a = 9 b = 10 }`
    (destructured-local.rs:166) `[...] { a = 21 b = 22 }`
    (destructured-local.rs:193) `[...] (34, 35)`
    (destructured-local.rs:196) `[...] (36, 37)`
    (destructured-local.rs:202) `[...] (40, 41, 42)`
    (destructured-local.rs:205) `[...] (43, 44, 45)`
    (destructured-local.rs:211) `[...] (47, 48)`
the following subset of check directive(s) was found successfully:
    (destructured-local.rs:125) `DEBUG: breakpoint added, id = 1`
    (destructured-local.rs:127) `(bool) b = false `
    (destructured-local.rs:130) `(long) c = 2 `
    (destructured-local.rs:132) `(unsigned short) d = 3 `
    (destructured-local.rs:134) `(unsigned short) e = 4 `
    (destructured-local.rs:137) `(long) f = 5 `
    (destructured-local.rs:142) `(short) h = 8 `
    (destructured-local.rs:146) `(short) j = 11 `
    (destructured-local.rs:149) `(long) k = 12 `
    (destructured-local.rs:151) `(int) l = 13 `
    (destructured-local.rs:154) `(int) m = 14 `
    (destructured-local.rs:156) `(int) n = 16 `
    (destructured-local.rs:159) `(int) o = 18 `
    (destructured-local.rs:162) `(long) p = 19 `
    (destructured-local.rs:164) `(int) q = 20 `
    (destructured-local.rs:169) `(int) s = 24 `
    (destructured-local.rs:171) `(long) t = 23 `
    (destructured-local.rs:174) `(int) u = 25 `
    (destructured-local.rs:176) `(int) v = 26 `
    (destructured-local.rs:178) `(int) w = 27 `
    (destructured-local.rs:180) `(int) x = 28 `
    (destructured-local.rs:182) `(long) y = 29 `
    (destructured-local.rs:184) `(int) z = 30 `
    (destructured-local.rs:186) `(long) ae = 31 `
    (destructured-local.rs:188) `(int) oe = 32 `
    (destructured-local.rs:190) `(int) ue = 33 `
    (destructured-local.rs:199) `(int) cc = 38 `
    (destructured-local.rs:208) `(int) *ff = 46 `
    (destructured-local.rs:214) `(int) *hh = 50 `
    (destructured-local.rs:217) `(int) ii = 51 `
    (destructured-local.rs:220) `(int) *jj = 52 `
    (destructured-local.rs:223) `(double) kk = 53 `
    (destructured-local.rs:226) `(long) ll = 54 `
    (destructured-local.rs:229) `(double) mm = 55 `
    (destructured-local.rs:232) `(long) *nn = 56 `
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-local.lldb/destructured-local.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-local.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-local.lldb/destructured-local.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-local.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-local.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'destructured-local.rs' --line 317
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`destructured_local::main + 972 at destructured-local.rs:317:5, address = 0x0000000100000c6c 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 39468 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-local.lldb/a' (arm64) Process 39468 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000c6c a`destructured_local::main at destructured-local.rs:317:5 314 // tuple struct with ref binding 315 let &TupleStruct(mm, ref nn) = &TupleStruct(55.0, 56); 316 -> 317 zzz(); // #break ^ 318 } 319 320 fn zzz() { () } Target 0: (a) stopped. 
v a
(long) a = 1 
v b
(bool) b = false 
v c
---
(unsigned short) e = 4 
v f
(long) f = 5 
v g
((u32, u32)) g = (__0 = 6, __1 = 7) 
v h
(short) h = 8 
v i
(destructured_local::Struct) i = (a = 9, b = 10) 
v j
(short) j = 11 
v k
(long) k = 12 
v l
(int) l = 13 
v m
---
(long) p = 19 
v q
(int) q = 20 
v r
(destructured_local::Struct) r = (a = 21, b = 22) 
v s
(int) s = 24 
v t
(long) t = 23 
v u
(int) u = 25 
v v
(int) v = 26 
v w
(int) w = 27 
v x
(int) x = 28 
v y
(long) y = 29 
v z
(int) z = 30 
v ae
(long) ae = 31 
v oe
(int) oe = 32 
v ue
(int) ue = 33 
v aa
((i32, i32)) aa = (__0 = 34, __1 = 35) 
v bb
((i32, i32)) bb = (__0 = 36, __1 = 37) 
v cc
(int) cc = 38 
v dd
((i32, i32, i32)) dd = (__0 = 40, __1 = 41, __2 = 42) 
v *ee
((i32, i32, i32)) *ee = (__0 = 43, __1 = 44, __2 = 45) 
v *ff
(int) *ff = 46 
v gg
((i32, i32)) gg = (__0 = 47, __1 = 48) 
v *hh
(int) *hh = 50 
v ii
(int) ii = 51 
v *jj
(int) *jj = 52 
v kk
(double) kk = 53 
v ll
(long) ll = 54 
v mm
(double) mm = 55 
v *nn
(long) *nn = 56 
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/destructured-local.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/empty-string.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/empty-string.rs` not found in debugger output. errors:
    (empty-string.rs:21) `[...] empty_string = ""`
    (empty-string.rs:24) `[...] empty_str = ""`
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/empty-string.lldb/empty-string.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/empty-string.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/empty-string.lldb/empty-string.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/empty-string.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/empty-string.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'empty-string.rs' --line 31
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`empty_string::main + 32 at empty-string.rs:31:5, address = 0x0000000100000898 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 39489 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/empty-string.lldb/a' (arm64) Process 39489 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000898 a`empty_string::main at empty-string.rs:31:5 28 29 let empty_str = ""; 30 -> 31 zzz(); // #break ^ 32 } 33 34 fn zzz() {} Target 0: (a) stopped. 
fr v empty_string
(alloc::string::String) empty_string = { vec = { buf = { inner = { ptr ={...} cap ={...} alloc ={...} } _marker = {} } len = 0 } } *** Some of the displayed variables have a greater depth of members than the debugger will show by default. To increase the limit, use the --depth option to frame variable, or raise the limit by changing the target.max-children-depth setting. 
fr v empty_str
(&str) empty_str = (data_ptr = "", length = 0) 
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/empty-string.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/evec-in-struct.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/evec-in-struct.rs` not found in debugger output. errors:
    (evec-in-struct.rs:29) `[...] { x = { [0] = 0 [1] = 1 [2] = 2 } y = -3 z = { [0] = 4.5 [1] = 5.5 } }`
    (evec-in-struct.rs:31) `[...] { x = { [0] = 6 [1] = 7 [2] = 8 } y = { [0] = { [0] = 9 [1] = 10 } [1] = { [0] = 11 [1] = 12 } } }`
    (evec-in-struct.rs:34) `[...] { x = { [0] = 13 [1] = 14 } y = { [0] = 15 [1] = 16 } }`
    (evec-in-struct.rs:37) `[...] { x = { [0] = 17 [1] = 18 [2] = 19 [3] = 20 [4] = 21 } }`
    (evec-in-struct.rs:40) `[...] { x = { [0] = 22 [1] = 23 } y = { [0] = 24 [1] = 25 } }`
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/evec-in-struct.lldb/evec-in-struct.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/evec-in-struct.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/evec-in-struct.lldb/evec-in-struct.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/evec-in-struct.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/evec-in-struct.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'evec-in-struct.rs' --line 96
Breakpoint 1: where = a`evec_in_struct::main + 336 at evec-in-struct.rs:96:5, address = 0x0000000100000924 
DEBUG: breakpoint added, id = 1
run
Process 39612 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/evec-in-struct.lldb/a' (arm64) Process 39612 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000924 a`evec_in_struct::main at evec-in-struct.rs:96:5 93 y: [24, 25] 94 }; 95 -> 96 zzz(); // #break ^ 97 } 98 99 fn zzz() { () } Target 0: (a) stopped. 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

v no_padding1
(evec_in_struct::NoPadding1) no_padding1 = { x = ([0] = 0, [1] = 1, [2] = 2) y = -3 z = ([0] = 4.5, [1] = 5.5) } 
v no_padding2
(evec_in_struct::NoPadding2) no_padding2 = { x = ([0] = 6, [1] = 7, [2] = 8) y = { [0] = ([0] = 9, [1] = 10) [1] = ([0] = 11, [1] = 12) } } 
v struct_internal_padding
(evec_in_struct::StructInternalPadding) struct_internal_padding = { x = ([0] = 13, [1] = 14) y = ([0] = 15, [1] = 16) } 
v single_vec
(evec_in_struct::SingleVec) single_vec = { x = ([0] = 17, [1] = 18, [2] = 19, [3] = 20, [4] = 21) } 
v struct_padded_at_end
(evec_in_struct::StructPaddedAtEnd) struct_padded_at_end = { x = ([0] = 22, [1] = 23) y = ([0] = 24, [1] = 25) } 
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/evec-in-struct.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/generic-function.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/generic-function.rs` not found in debugger output. errors:
    (generic-function.rs:46) `[...] { a = 6 b = 7.5 }`
the following subset of check directive(s) was found successfully:
    (generic-function.rs:32) `DEBUG: breakpoint added, id = 1`
    (generic-function.rs:34) `(double) *t1 = 2.5 `
    (generic-function.rs:38) `(double) *t0 = 3.5 `
    (generic-function.rs:40) `(unsigned short) *t1 = 4 `
    (generic-function.rs:44) `(int) *t0 = 5 `
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-function.lldb/generic-function.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-function.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-function.lldb/generic-function.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-function.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-function.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'generic-function.rs' --line 57
DEBUG: breakpoint added, id = 1
Breakpoint 1: 3 locations. 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 40114 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-function.lldb/a' (arm64) Process 40114 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.3 frame #0: 0x0000000100000a48 a`generic_function::dup_tup::<i32, f64>(t0=0x0000000100000d40, t1=0x0000000100000d48) at generic-function.rs:57:5 54 55 fn dup_tup<T0: Clone, T1: Clone>(t0: &T0, t1: &T1) -> ((T0, T1), (T1, T0)) { 56 let ret = ((t0.clone(), t1.clone()), (t1.clone(), t0.clone())); -> 57 zzz(); // #break ^ 58 ret 59 } 60 Target 0: (a) stopped. 
v *t0
(int) *t0 = 1 
v *t1
(double) *t1 = 2.5 
continue
v *t0
(double) *t0 = 3.5 
v *t1
(unsigned short) *t1 = 4 
continue
v *t0
(int) *t0 = 5 
v *t1
(generic_function::Struct) *t1 = (a = 6, b = 7.5) 
continue
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/generic-function.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/generic-method-on-generic-struct.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/generic-method-on-generic-struct.rs` not found in debugger output. errors:
    (generic-method-on-generic-struct.rs:61) `[...] { x = (8888, -8888) }`
    (generic-method-on-generic-struct.rs:70) `[...] { x = (8888, -8888) }`
    (generic-method-on-generic-struct.rs:79) `[...] { x = 1234.5 }`
    (generic-method-on-generic-struct.rs:88) `[...] { x = 1234.5 }`
    (generic-method-on-generic-struct.rs:97) `[...] { x = 1234.5 }`
the following subset of check directive(s) was found successfully:
    (generic-method-on-generic-struct.rs:63) `(long) arg1 = -1 `
    (generic-method-on-generic-struct.rs:65) `(unsigned short) arg2 = 2 `
    (generic-method-on-generic-struct.rs:72) `(long) arg1 = -3 `
    (generic-method-on-generic-struct.rs:74) `(short) arg2 = -4 `
    (generic-method-on-generic-struct.rs:81) `(long) arg1 = -5 `
    (generic-method-on-generic-struct.rs:83) `(int) arg2 = -6 `
    (generic-method-on-generic-struct.rs:90) `(long) arg1 = -7 `
    (generic-method-on-generic-struct.rs:92) `(long) arg2 = -8 `
    (generic-method-on-generic-struct.rs:99) `(long) arg1 = -9 `
    (generic-method-on-generic-struct.rs:101) `(float) arg2 = -10.5 `
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-method-on-generic-struct.lldb/generic-method-on-generic-struct.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-method-on-generic-struct.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-method-on-generic-struct.lldb/generic-method-on-generic-struct.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-method-on-generic-struct.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-method-on-generic-struct.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'generic-method-on-generic-struct.rs' --line 112
DEBUG: breakpoint added, id = 1
Breakpoint 1: 2 locations. 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'generic-method-on-generic-struct.rs' --line 117
DEBUG: breakpoint added, id = 2
Breakpoint 2: 2 locations. 
DEBUG: registering breakpoint callback, id = 2
Error while trying to register breakpoint callback, id = 2, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'generic-method-on-generic-struct.rs' --line 122
DEBUG: breakpoint added, id = 3
Breakpoint 3: where = a`<generic_method_on_generic_struct::Struct<f64>>::self_owned::<f32> + 28 at generic-method-on-generic-struct.rs:122:9, address = 0x0000000100000850 
DEBUG: registering breakpoint callback, id = 3
Error while trying to register breakpoint callback, id = 3, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 40130 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-method-on-generic-struct.lldb/a' (arm64) Process 40130 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x00000001000007ac a`<generic_method_on_generic_struct::Struct<(u32, i32)>>::self_by_ref::<u16>(self=0x000000016fdfce18, arg1=-1, arg2=2) at generic-method-on-generic-struct.rs:112:9 109 impl<T1> Struct<T1> { 110 111 fn self_by_ref<T2>(&self, arg1: isize, arg2: T2) -> isize { -> 112 zzz(); // #break ^ 113 arg1 114 } 115 Target 0: (a) stopped. 
v *self
(generic_method_on_generic_struct::Struct<(u32, i32)>) *self = { x = (__0 = 8888, __1 = -8888) } 
v arg1
(long) arg1 = -1 
v arg2
(unsigned short) arg2 = 2 
continue
v self
(generic_method_on_generic_struct::Struct<(u32, i32)>) self = { x = (__0 = 8888, __1 = -8888) } 
v arg1
(long) arg1 = -3 
v arg2
(short) arg2 = -4 
continue
v *self
(generic_method_on_generic_struct::Struct<double>) *self = (x = 1234.5) 
v arg1
(long) arg1 = -5 
v arg2
(int) arg2 = -6 
continue
v self
(generic_method_on_generic_struct::Struct<double>) self = (x = 1234.5) 
v arg1
(long) arg1 = -7 
v arg2
(long) arg2 = -8 
continue
v *self
(generic_method_on_generic_struct::Struct<double>) *self = (x = 1234.5) 
v arg1
(long) arg1 = -9 
v arg2
(float) arg2 = -10.5 
continue
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/generic-method-on-generic-struct.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/generic-struct.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/generic-struct.rs` not found in debugger output. errors:
    (generic-struct.rs:23) `[...]AGenericStruct<int, int>) int_int = { key = 0 value = 1 }`
    (generic-struct.rs:25) `[...]AGenericStruct<int, double>) int_float = { key = 2 value = 3.5 }`
    (generic-struct.rs:27) `[...]AGenericStruct<double, int>) float_int = { key = 4.5 value = 5 }`
    (generic-struct.rs:30) `[...]AGenericStruct<double, generic_struct::AGenericStruct<int, double> >) float_int_float = { key = 6.5 value = { key = 7 value = 8.5 } }`
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-struct.lldb/generic-struct.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-struct.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-struct.lldb/generic-struct.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-struct.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-struct.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'generic-struct.rs' --line 69
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`generic_struct::main + 80 at generic-struct.rs:69:5, address = 0x0000000100000824 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 40320 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-struct.lldb/a' (arm64) Process 40320 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000824 a`generic_struct::main at generic-struct.rs:69:5 66 value: AGenericStruct { key: 7, value: 8.5f64 }, 67 }; 68 -> 69 zzz(); // #break ^ 70 } 71 72 fn zzz() { () } Target 0: (a) stopped. 
v int_int
(generic_struct::AGenericStruct<int, int>) int_int = (key = 0, value = 1) 
v int_float
(generic_struct::AGenericStruct<int, double>) int_float = (key = 2, value = 3.5) 
v float_int
(generic_struct::AGenericStruct<double, int>) float_int = (key = 4.5, value = 5) 
v float_int_float
(generic_struct::AGenericStruct<double, generic_struct::AGenericStruct<int, double> >) float_int_float = { key = 6.5 value = (key = 7, value = 8.5) } 
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/generic-struct.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/issue-22656.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/issue-22656.rs` not found in debugger output. errors:
    (issue-22656.rs:14) `[...] size=3 { [0] = 1 [1] = 2 [2] = 3 }`
    (issue-22656.rs:16) `[...] { x = y = 123 z = w = 456 }`
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/issue-22656.lldb/issue-22656.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/issue-22656.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/issue-22656.lldb/issue-22656.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/issue-22656.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/issue-22656.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'issue-22656.rs' --line 40
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`issue_22656::main + 164 at issue-22656.rs:40:5, address = 0x0000000100000a8c 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

run
Process 40595 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/issue-22656.lldb/a' (arm64) Process 40595 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000a8c a`issue_22656::main at issue-22656.rs:40:5 37 w: 456 38 }; 39 -> 40 zzz(); // #break ^ 41 } 42 43 fn zzz() { () } Target 0: (a) stopped. 
v v
(alloc::vec::Vec<int, alloc::alloc::Global>) v = { buf = { inner = { ptr = { pointer ={...} _marker ={...} } cap = (__0 = 3) alloc = {} } _marker = {} } len = 3 } *** Some of the displayed variables have a greater depth of members than the debugger will show by default. To increase the limit, use the --depth option to frame variable, or raise the limit by changing the target.max-children-depth setting. 
v zs
(issue_22656::StructWithZeroSizedField) zs = (x = issue_22656::ZeroSizedStruct @ 0x000000016fdfcea4, y = 123, z = issue_22656::ZeroSizedStruct @ 0x000000016fdfcea4, w = 456) 
quit
------------------------------------------
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 111, in __lldb_init_module
    version_str: str = debugger.version
AttributeError: 'SBDebugger' object has no attribute 'version'
warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited.
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/issue-22656.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/method-on-generic-struct.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1703

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/method-on-generic-struct.rs` not found in debugger output. errors:
    (method-on-generic-struct.rs:61) `[...]Struct<(u32, i32)>) *self = { x = (8888, -8888) }`
    (method-on-generic-struct.rs:70) `[...]Struct<(u32, i32)>) self = { x = (8888, -8888) }`
    (method-on-generic-struct.rs:79) `[...]Struct<double>) *self = { x = 1234.5 }`
    (method-on-generic-struct.rs:88) `[...]Struct<double>) self = { x = 1234.5 }`
    (method-on-generic-struct.rs:97) `[...]Struct<double>) *self = { x = 1234.5 }`
the following subset of check directive(s) was found successfully:
    (method-on-generic-struct.rs:63) `(long) arg1 = -1 `
    (method-on-generic-struct.rs:65) `(long) arg2 = -2 `
    (method-on-generic-struct.rs:72) `(long) arg1 = -3 `
    (method-on-generic-struct.rs:74) `(long) arg2 = -4 `
    (method-on-generic-struct.rs:81) `(long) arg1 = -5 `
    (method-on-generic-struct.rs:83) `(long) arg2 = -6 `
    (method-on-generic-struct.rs:90) `(long) arg1 = -7 `
    (method-on-generic-struct.rs:92) `(long) arg2 = -8 `
    (method-on-generic-struct.rs:99) `(long) arg1 = -9 `
    (method-on-generic-struct.rs:101) `(long) arg2 = -10 `
status: exit status: 0
command: LLDB_BATCHMODE_SCRIPT_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/method-on-generic-struct.lldb/method-on-generic-struct.debugger.script" LLDB_BATCHMODE_TARGET_PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/method-on-generic-struct.lldb/a" PATH="/Users/runner/work/rust/rust/build/aarch64-apple-darwin/stage2/lib/rustlib/aarch64-apple-darwin/lib:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools" PYTHONPATH="/Users/runner/work/rust/rust/src/etc" PYTHONUNBUFFERED="1" "lldb" "--one-line" "script --language python -- import lldb_batchmode; lldb_batchmode.main()"
--- stdout -------------------------------
(lldb) script --language python -- import lldb_batchmode; lldb_batchmode.main()
LLDB batch-mode script
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/method-on-generic-struct.lldb/method-on-generic-struct.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/method-on-generic-struct.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/method-on-generic-struct.lldb/a'
settings set auto-confirm true

settings set target.inherit-tcc true

version
lldb-1703.0.236.21 Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2) 
command script import /Users/runner/work/rust/rust/src/etc/lldb_lookup.py
breakpoint set --file 'method-on-generic-struct.rs' --line 112
DEBUG: breakpoint added, id = 1
Breakpoint 1: 2 locations. 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'method-on-generic-struct.rs' --line 117
Breakpoint 2: 2 locations. 
breakpoint set --file 'method-on-generic-struct.rs' --line 122
Breakpoint 3: where = a`<method_on_generic_struct::Struct<f64>>::self_owned + 32 at method-on-generic-struct.rs:122:9, address = 0x0000000100000b74 
DEBUG: breakpoint added, id = 2
DEBUG: breakpoint added, id = 3
run
Process 42032 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/method-on-generic-struct.lldb/a' (arm64) Process 42032 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000a94 a`<method_on_generic_struct::Struct<(u32, i32)>>::self_by_ref(self=0x000000016fdfce38, arg1=-1, arg2=-2) at method-on-generic-struct.rs:112:9 109 impl<T> Struct<T> { 110 111 fn self_by_ref(&self, arg1: isize, arg2: isize) -> isize { -> 112 zzz(); // #break ^ 113 arg1 + arg2 114 } 115 Target 0: (a) stopped. 
DEBUG: registering breakpoint callback, id = 3
Error while trying to register breakpoint callback, id = 3, message = error: could not get num args: can't find callable: breakpoint_callback

DEBUG: registering breakpoint callback, id = 2
Error while trying to register breakpoint callback, id = 2, message = error: could not get num args: can't find callable: breakpoint_callback

v *self
(method_on_generic_struct::Struct<(u32, i32)>) *self = { x = (__0 = 8888, __1 = -8888) } 
v arg1
(long) arg1 = -1 
v arg2
(long) arg2 = -2 
continue
v self
(method_on_generic_struct::Struct<(u32, i32)>) self = { x = (__0 = 8888, __1 = -8888) } 
v arg1
(long) arg1 = -3 
v arg2
(long) arg2 = -4 

@Walnut356
Copy link
Copy Markdown
Contributor Author

Okay, bad news is this test didn't go exactly as planned because debugger.version was only added recently and is not present in apple's LLDB. The good news is:

  1. I can confirm it's not present via apple's repo (llvm's for comparison) so I should be able to check for similar things without running a try job.
  2. apple's LLDB does have the type recognizer enum value so those should work

i'm still iffy on whether I want to just update the tests, or if i want to force a StructSummaryProvider and save us from annoyances like this in the future (at the cost of some minor performance losses).

@Walnut356
Copy link
Copy Markdown
Contributor Author

I guess I should also note that, in additional bad news, apples versioning scheme seems to have 0 relation to llvm's, so using raw version numbers probably won't work. I should be able to just check for features via getattr to check what functions and values are present at runtime

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented Apr 24, 2026

☔ The latest upstream changes (presumably #155710) made this pull request unmergeable. Please resolve the merge conflicts.

jhpratt added a commit to jhpratt/rust that referenced this pull request Apr 25, 2026
…youxu

Account for `GetSyntheticValue` failures

`GetSyntheticValue` returns an invalid `SBValue` if no synthetic is present. That wasn't a problem before when we  were attaching synthetics to every type, but it won't be the case once github.com/rust-lang/pull/155336 or similar lands. Additionally, codelldb subverts `lldb_commands` to apply similar behavior that doesn't attach synthetics to every type, so this fixes a regression there too.

Additionally, I removed 1 useless instance of `GetSyntheticValue`, since pointers should always be `IndirectionSyntheticProvider`, not `DefaultSyntheticProvider`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants