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.
}
// write debugger script
- let script_str = cmds.append("\nquit\n");
+ let script_str = [~"set charset UTF-8",
+ cmds,
+ ~"quit\n"].connect("\n");
debug!("script_str = %s", script_str);
dump_output_file(config, testfile, script_str, "debugger.script");
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// Caveats - gdb prints any 8-bit value (meaning rust i8 and u8 values)
// as its numerical value along with its associated ASCII char, there
// doesn't seem to be any way around this. Also, gdb doesn't know
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// Gdb doesn't know about UTF-32 character encoding and will print a rust char as only
// its numerical value.
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// Gdb doesn't know about UTF-32 character encoding and will print a rust char as only
// its numerical value.
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// Gdb doesn't know about UTF-32 character encoding and will print a rust char as only
// its numerical value.
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print pretty off
// debugger:break _zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print pretty off
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print union on
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print union on
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
+// xfail-win32
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
+// xfail-win32
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
+// xfail-win32
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z debug-info
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
+// xfail-win32
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print pretty off
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print pretty off
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print pretty off
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print pretty off
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print pretty off
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print union on
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print pretty off
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print union on
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print pretty off
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print pretty off
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print pretty off
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print union on
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:break zzz
// debugger:run
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print pretty off
// debugger:break zzz
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
-
// compile-flags:-Z extra-debug-info
// debugger:set print pretty off
// debugger:break zzz