Skip to content

debuginfo: Add LLDB autotests without activating them yet #15573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 16, 2014

Conversation

michaelwoerister
Copy link
Member

This PR adds the LLDB autotests to the debuginfo test suite so I don't have to keep rebasing them locally. They are still disabled by default in tests.mk. One of the commits also contains a Python pretty printer which can make LLDB print values with Rust syntax. This was mainly added to deal with output format differences between LLDB versions but you can also use it for your normal LLDB debugging sessions.

// The following LLDB commands will load and activate the Rust printers
command script import ./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

Expect some rough edges with these, they have not been tested apart from there use in the autotests...

The shutdown call would always result in an exception being printed to standard error.
This commit adds LLDB autotests to the test suite but does not activate them by default yet.
Some older versions of LLDB have problems with multiple instances running in parallel. This commit makes sure we don't do that.
@michaelwoerister
Copy link
Member Author

I fixed the gdb test case and rebased. I'll have bors give it another try.

@michaelwoerister
Copy link
Member Author

@alexcrichton Will bors pick this up even if building failed on Travis CI? The failure there just seems to be some timeout problem...

@alexcrichton
Copy link
Member

It should yeah, I gave it another r+ to see what happens

bors added a commit that referenced this pull request Jul 16, 2014
…l, r=alexcrichton

This PR adds the LLDB autotests to the debuginfo test suite so I don't have to keep rebasing them locally. They are still disabled by default in `tests.mk`. One of the commits also contains a Python pretty printer which can make LLDB print values with Rust syntax. This was mainly added to deal with output format differences between LLDB versions but you can also use it for your normal LLDB debugging sessions.
```
// The following LLDB commands will load and activate the Rust printers
command script import ./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
```
Expect some rough edges with these, they have not been tested apart from there use in the autotests...
@bors bors closed this Jul 16, 2014
@bors bors merged commit 3b336b2 into rust-lang:master Jul 16, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 18, 2023
assist : `into_to_qualified_from`

fixes rust-lang#15539. This assist converts an `.into()` call into an explicit fully qualified `from()` call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants