rust/src/etc
bors 3d5b8c6266 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|
|---|---|
|![tuples_before](https://cloud.githubusercontent.com/assets/1297574/26527639/5d6cf10e-43a0-11e7-9498-abfcddb08055.png)|![tuples_after](https://cloud.githubusercontent.com/assets/1297574/26527655/9699233a-43a0-11e7-83c6-f58f713b51a0.png)|

`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}"
        }
    ]
}
```
2017-06-09 18:17:15 +00:00
..
installer Fix formatting issues in Distribution.xml 2017-05-29 21:55:35 -05:00
natvis Remove non-breaking spaces 2017-04-17 17:49:35 +01:00
platform-intrinsics Change `llvm.neon.*` to `llvm.arm.neon.*` in the mapping for platform intrinsics 2017-06-07 11:23:10 +03:00
test-float-parse Remove unused code 2016-09-17 23:07:11 -07:00
third-party Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
CONFIGS.md Add sublime-rust to CONFIGS.md. 2016-08-22 01:24:01 -04:00
char_private.py Reduce a table used for `Debug` impl of `str`. 2017-04-05 09:13:19 -07:00
ctags.rust Update the ctags rules and targets. 2015-07-30 06:35:42 +10:00
debugger_pretty_printers_common.py Add compat_str() which works with unicode in both Python 2 and 3 2017-06-09 19:09:02 +03:00
dec2flt_table.py Speed up dec2flt fast path with additional tables. 2016-01-12 22:25:16 +01:00
gdb_load_rust_pretty_printers.py debuginfo: Add a rust-gdb shell script that will start GDB with Rust pretty printers enabled. 2014-12-30 17:26:13 +01:00
gdb_rust_pretty_printing.py Add compat_str() which works with unicode in both Python 2 and 3 2017-06-09 19:09:02 +03:00
generate-deriving-span-tests.py rustc: rework stability to be on-demand for type-directed lookup. 2016-11-28 04:18:11 +02:00
generate-keyword-tests.py Fix keyword parsing tests 2016-04-24 21:35:50 +03:00
htmldocck.py print enum variant fields in docs 2016-05-30 16:11:53 +02:00
indenter Port indenter to python 2015-01-16 08:49:54 -08:00
lldb_batchmode.py pep8 prefers triple quoted with double quotes 2016-09-17 23:05:20 -07:00
lldb_rust_formatters.py Add pretty printing of unions in debuggers 2017-01-01 19:34:06 +10:00
rust-gdb Rename environment variable `GDB_CMD` to `RUST_GDB` to prevent ambiguity 2017-04-20 11:20:33 -04:00
rust-lldb Make rust-lldb warn about unsupported versions of LLDB 2016-07-04 19:37:36 -04:00
rust-windbg.cmd Adds rust-windbg.cmd script 2017-04-24 16:26:00 -07:00
sugarise-doc-comments.py Fix PEP8 in sugarise-doc-comments 2015-01-27 01:26:02 -08:00
ziggurat_tables.py std: Move rand to librand. 2014-03-12 11:31:05 +11:00