debuginfo: Add GDB pretty printers for slices, Vec<>, and String.#23310
Merged
bors merged 1 commit intorust-lang:masterfrom Mar 13, 2015
Merged
debuginfo: Add GDB pretty printers for slices, Vec<>, and String.#23310bors merged 1 commit intorust-lang:masterfrom
bors merged 1 commit intorust-lang:masterfrom
Conversation
Contributor
|
r? @pcwalton (rust_highfive has picked a reviewer for you, use r? to override) |
Member
Member
|
👯 |
Member
|
I wonder if it would be possible for |
Member
Author
|
@eddyb We could do that but it would be kind of lying about the type, wouldn't it? |
Member
|
I guess... I prefer |
Manishearth
added a commit
to Manishearth/rust
that referenced
this pull request
Mar 13, 2015
…crichton
```rust
Rust: let slice: &[i32] = &[0, 1, 2, 3];
GDB: $1 = &[i32](len: 4) = {0, 1, 2, 3}
Rust: let vec = vec![4, 5, 6, 7];
GDB: $2 = Vec<u64>(len: 4, cap: 4) = {4, 5, 6, 7}
Rust: let str_slice = \"IAMA string slice!\";
GDB: $3 = \"IAMA string slice!\"
Rust: let string = \"IAMA string!\".to_string();
GDB: $4 = \"IAMA string!\"
```
Neat!
Member
Author
Yes, I think I'll do some kind of informal poll in the forum about what the actual rendering should look like. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Neat!