Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottcarr/e5b049996ed1b4f449d06d3828fb20b3 to your computer and use it in GitHub Desktop.
Save scottcarr/e5b049996ed1b4f449d06d3828fb20b3 to your computer and use it in GitHub Desktop.
failures:
---- [debuginfo-lldb] debuginfo-lldb/option-like-enum.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 360
error: line not found in debugger output: [...]$0 = Some(&0x12345678)
status: exit code: 0
command: "/usr/bin/python" "/Users/scarr/mozilla/rust-workspace/lldb-testing/rust/src/etc/lldb_batchmode.py" "x86_64-apple-darwin/test/debuginfo-lldb/option-like-enum.stage2-x86_64-apple-darwin" "x86_64-apple-darwin/test/debuginfo-lldb/option-like-enum.debugger.script"
stdout:
------------------------------------------
LLDB batch-mode script
----------------------
Debugger commands script is 'x86_64-apple-darwin/test/debuginfo-lldb/option-like-enum.debugger.script'.
Target executable is 'x86_64-apple-darwin/test/debuginfo-lldb/option-like-enum.stage2-x86_64-apple-darwin'.
Current working directory is '/Users/scarr/mozilla/rust-workspace/lldb-testing/rust'
Creating a target for 'x86_64-apple-darwin/test/debuginfo-lldb/option-like-enum.stage2-x86_64-apple-darwin'
settings set auto-confirm true
version
lldb-360.99.0
command script import /Users/scarr/mozilla/rust-workspace/lldb-testing/rust/./src/etc/lldb_rust_formatters.py
type summary add --no-value --python-function lldb_rust_formatters.print_val -x ".*" --category Rust
type category enable Rust
breakpoint set --file 'option-like-enum.rs' --line 161
Breakpoint 1: where = option-like-enum.stage2-x86_64-apple-darwin`option_like_enum::main + 322 at option-like-enum.rs:161, address = 0x0000000100000e42
run
Hit breakpoint 1.1: where = option-like-enum.stage2-x86_64-apple-darwin`option_like_enum::main + 322 at option-like-enum.rs:161, address = 0x0000000100000e42, resolved, hit count = 1
Process 80532 stopped * thread #1: tid = 0x3c6c4, 0x0000000100000e42 option-like-enum.stage2-x86_64-apple-darwin`option_like_enum::main + 322 at option-like-enum.rs:161, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000e42 option-like-enum.stage2-x86_64-apple-darwin`option_like_enum::main + 322 at option-like-enum.rs:161 158 159 let nested_non_zero_nope = NestedNonZero::Nope; 160 -> 161 zzz(); // #break 162 } 163 164 fn zzz() {()} Process 80532 launched: '/Users/scarr/mozilla/rust-workspace/lldb-testing/rust/x86_64-apple-darwin/test/debuginfo-lldb/option-like-enum.stage2-x86_64-apple-darwin' (x86_64)
print some
(core::option::Option<&u32>) $0 = Some(&0x12345678L)
print none
(core::option::Option<&u32>) $1 = None
print full
(option_like_enum::MoreFields) $2 = Full(454545, &0x87654321L, 9988)
print empty
(option_like_enum::MoreFields) $3 = Empty
print droid
(option_like_enum::NamedFields) $4 = Droid { id: 675675, range: 10000001, internals: &0x43218765L }
print void_droid
(option_like_enum::NamedFields) $5 = Void
print some_str
(core::option::Option<&str>) $6 = Some("abc")
print none_str
(core::option::Option<&str>) $7 = None
print nested_non_zero_yep
(option_like_enum::NestedNonZero) $8 = Yep(10.5, NestedNonZeroField { a: 10, b: 20, c: &0x7fff5fbff3ecL })
print nested_non_zero_nope
(option_like_enum::NestedNonZero) $9 = Nope
quit
------------------------------------------
stderr:
------------------------------------------
dyld: warning, LC_RPATH @executable_path/../lib in /usr/local/lib/python2.7/site-packages/lldb/_lldb.so being ignored in restricted program because of @executable_path
error: need to add support for DW_TAG_base_type 'char' encoded with DW_ATE = 0x8, bit_size = 32
------------------------------------------
thread '[debuginfo-lldb] debuginfo-lldb/option-like-enum.rs' panicked at 'explicit panic', /Users/scarr/mozilla/rust-workspace/lldb-testing/rust/src/tools/compiletest/src/runtest.rs:2231
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failures:
[debuginfo-lldb] debuginfo-lldb/option-like-enum.rs
test result: FAILED. 91 passed; 1 failed; 10 ignored; 0 measured
thread '<main>' panicked at 'Some tests failed', /Users/scarr/mozilla/rust-workspace/lldb-testing/rust/src/tools/compiletest/src/main.rs:282
make: *** [tmp/check-stage2-T-x86_64-apple-darwin-H-x86_64-apple-darwin-debuginfo-lldb.ok] Error 101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment