Skip to content

Commit 604ab94

Browse files
committed
auto merge of #8757 : vadimcn/rust/debug-info-tests, r=brson
Now that new LLVM has landed, the debug info works on Windows as well. Most existing tests pass, except for the following four, which I left disabled for now: lexical-scope-in-for-loop lexical-scope-in-if lexical-scope-in-match lexical-scopes-in-block-expression Also, fixed a small problem with the debug info test runner.
2 parents 35f975b + 7f79b52 commit 604ab94

File tree

73 files changed

+7
-141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+7
-141
lines changed

src/compiletest/runtest.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,9 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
282282
}
283283
284284
// write debugger script
285-
let script_str = cmds.append("\nquit\n");
285+
let script_str = [~"set charset UTF-8",
286+
cmds,
287+
~"quit\n"].connect("\n");
286288
debug!("script_str = %s", script_str);
287289
dump_output_file(config, testfile, script_str, "debugger.script");
288290

src/test/debug-info/basic-types.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// Caveats - gdb prints any 8-bit value (meaning rust i8 and u8 values)
1412
// as its numerical value along with its associated ASCII char, there
1513
// doesn't seem to be any way around this. Also, gdb doesn't know

src/test/debug-info/borrowed-basic.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// Gdb doesn't know about UTF-32 character encoding and will print a rust char as only
1412
// its numerical value.
1513

src/test/debug-info/borrowed-c-style-enum.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/borrowed-enum.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/borrowed-managed-basic.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// Gdb doesn't know about UTF-32 character encoding and will print a rust char as only
1412
// its numerical value.
1513

src/test/debug-info/borrowed-struct.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/borrowed-tuple.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/borrowed-unique-basic.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// Gdb doesn't know about UTF-32 character encoding and will print a rust char as only
1412
// its numerical value.
1513

src/test/debug-info/box.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:set print pretty off
1513
// debugger:break _zzz

src/test/debug-info/boxed-struct.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/boxed-vec.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/c-style-enum-in-composite.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/c-style-enum.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/closure-in-generic-function.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/destructured-fn-argument.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/destructured-local.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/evec-in-struct.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:set print pretty off
1513
// debugger:break zzz

src/test/debug-info/function-arguments.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/generic-function.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/generic-functions-nested.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/generic-method-on-generic-struct.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/generic-static-method-on-struct-and-enum.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/generic-struct-style-enum.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:set print union on
1513
// debugger:break zzz

src/test/debug-info/generic-struct.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/generic-trait-generic-static-default-method.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/generic-tuple-style-enum.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:set print union on
1513
// debugger:break zzz

src/test/debug-info/lexical-scope-in-for-loop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
11+
// xfail-win32
1212

1313
// compile-flags:-Z extra-debug-info
1414
// debugger:break zzz

src/test/debug-info/lexical-scope-in-if.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
11+
// xfail-win32
1212

1313
// compile-flags:-Z extra-debug-info
1414
// debugger:break zzz

src/test/debug-info/lexical-scope-in-managed-closure.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/lexical-scope-in-match.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
11+
// xfail-win32
1212

1313
// compile-flags:-Z extra-debug-info
1414
// debugger:break zzz

src/test/debug-info/lexical-scope-in-parameterless-closure.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z debug-info
1412
// debugger:run
1513

src/test/debug-info/lexical-scope-in-stack-closure.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/lexical-scope-in-unconditional-loop.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/lexical-scope-in-unique-closure.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/lexical-scope-in-while.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/lexical-scope-with-macro.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/lexical-scopes-in-block-expression.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
11+
// xfail-win32
1212

1313
// compile-flags:-Z extra-debug-info
1414
// debugger:break zzz

src/test/debug-info/managed-enum.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/managed-pointer-within-unique-vec.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/managed-pointer-within-unique.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:set print pretty off
1513
// debugger:break zzz

src/test/debug-info/method-on-enum.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/method-on-generic-struct.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

src/test/debug-info/method-on-struct.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
12-
1311
// compile-flags:-Z extra-debug-info
1412
// debugger:break zzz
1513
// debugger:run

0 commit comments

Comments
 (0)