Skip to content

Commit

Permalink
Re-enable struct value printing in debug info tests with gdb pretty p…
Browse files Browse the repository at this point in the history
…rinting off
  • Loading branch information
bleibig authored and brson committed Mar 11, 2013
1 parent c913eff commit f1928d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
9 changes: 6 additions & 3 deletions src/test/debug-info/struct.rs
Expand Up @@ -9,12 +9,15 @@
// except according to those terms.

// compile-flags:-Z extra-debug-info
// debugger:break 26
// debugger:set print pretty off
// debugger:break 29
// debugger:run
// debugger:print pair
// check:$1 = {x = 1, y = 2}
// debugger:print pair.x
// check:$1 = 1
// check:$2 = 1
// debugger:print pair.y
// check:$2 = 2
// check:$3 = 2

struct Pair {
x: int,
Expand Down
10 changes: 3 additions & 7 deletions src/test/debug-info/tuple.rs
Expand Up @@ -8,16 +8,12 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// xfail-test
// compile-flags:-Z extra-debug-info
// debugger:break 23
// debugger:set print pretty off
// debugger:break 20
// debugger:run
// debugger:print t
// check:$1 = {
// check:4,
// check:5.5,
// check:true
// check:}
// check:$1 = {4, 5.5, true}

fn main() {
let t = (4, 5.5, true);
Expand Down

0 comments on commit f1928d8

Please sign in to comment.