diff options
| author | bors <bors@rust-lang.org> | 2017-06-09 18:17:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-06-09 18:17:15 +0000 |
| commit | 3d5b8c6266fd58cefa0d7af8c6115fe22532d069 (patch) | |
| tree | 60b8527b541e5c96365292e2b972ed27e7890553 /src/test/run-pass/thinlto | |
| parent | 5fe923d43455f362408aad30ffc86a6ab71ff7c6 (diff) | |
| parent | 63076ddbb8e9856e9996adb49fc0a67a29ca697b (diff) | |
| download | rust-3d5b8c6266fd58cefa0d7af8c6115fe22532d069.tar.gz rust-3d5b8c6266fd58cefa0d7af8c6115fe22532d069.zip | |
Auto merge of #42278 - gentoo90:gdb-pretty-printers, r=michaelwoerister
Fix GDB pretty-printer for tuples and pointers
Names of children should not be the same, because GDB uses them to distinguish the children.
|Before|After|
|---|---|
|||
`main.rs`
```rust
enum Test {
Zero,
One(i32),
Two(i32, String),
Three(i32, String, Vec<String>),
}
fn main() {
let tuple = (1, 2, "Asdfgh");
let zero = Test::Zero;
let one = Test::One(10);
let two = Test::Two(42, "Qwerty".to_owned());
let three = Test::Three(9000,
"Zxcvbn".to_owned(),
vec!["lorem".to_owned(), "ipsum".to_owned(), "dolor".to_owned()]);
println!(""); // breakpoint here
}
```
`launch.json`
```json
{
"version": "0.2.0",
"configurations": [
{
"type": "gdb",
"request": "launch",
"gdbpath": "rust-gdb",
"name": "Launch Program",
"valuesFormatting": "prettyPrinters", //this requires plugin Native Debug >= 0.20.0
"target": "./target/debug/test_pretty_printers",
"cwd": "${workspaceRoot}"
}
]
}
```
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
