Skip to content

Commit bed37ae

Browse files
committed
Auto merge of #128982 - saethlin:windows-debuginfo-tests, r=<try>
Enable more debuginfo tests on Windows r? `@ghost` try-job: x86_64-msvc
2 parents 9cb1998 + c3c51a9 commit bed37ae

31 files changed

+51
-82
lines changed

tests/debuginfo/basic-types-globals-metadata.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ min-lldb-version: 310
2-
//@ ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
32

43
//@ compile-flags:-g
54
// gdb-command:run

tests/debuginfo/basic-types-metadata.rs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ min-lldb-version: 310
2-
//@ ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
32

43
//@ compile-flags:-g
54
// gdb-command:run
@@ -36,31 +35,31 @@
3635
// gdb-command:whatis f64
3736
// gdb-check:type = f64
3837
// gdb-command:whatis fnptr
39-
// gdb-check:type = [...] (*)([...])
38+
// gdb-check:type = *mut fn ()
4039
// gdb-command:info functions _yyy
4140
// gdbg-check:[...]![...]_yyy([...]);
42-
// gdbr-check:static fn basic_types_metadata::_yyy() -> !;
41+
// gdbr-check:static fn basic_types_metadata::_yyy();
4342
// gdb-command:ptype closure_0
44-
// gdbr-check: type = struct closure
43+
// gdbr-check: type = struct basic_types_metadata::main::{closure_env#0}
4544
// gdbg-check: type = struct closure {
4645
// gdbg-check: <no data fields>
4746
// gdbg-check: }
4847
// gdb-command:ptype closure_1
4948
// gdbg-check: type = struct closure {
5049
// gdbg-check: bool *__0;
5150
// gdbg-check: }
52-
// gdbr-check: type = struct closure (
53-
// gdbr-check: bool *,
54-
// gdbr-check: )
51+
// gdbr-check: type = struct basic_types_metadata::main::{closure_env#1} {
52+
// gdbr-check: *mut bool,
53+
// gdbr-check: }
5554
// gdb-command:ptype closure_2
5655
// gdbg-check: type = struct closure {
5756
// gdbg-check: bool *__0;
5857
// gdbg-check: isize *__1;
5958
// gdbg-check: }
60-
// gdbr-check: type = struct closure (
61-
// gdbr-check: bool *,
62-
// gdbr-check: isize *,
63-
// gdbr-check: )
59+
// gdbr-check: type = struct basic_types_metadata::main::{closure_env#2} {
60+
// gdbr-check: *mut bool,
61+
// gdbr-check: *mut isize,
62+
// gdbr-check: }
6463

6564
//
6665
// gdb-command:continue

tests/debuginfo/basic-types.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
//@ min-lldb-version: 310
88

9-
// This fails on lldb 6.0.1 on x86-64 Fedora 28; so ignore Linux for now.
10-
//@ ignore-linux
11-
129
//@ compile-flags:-g
1310

1411
// === GDB TESTS ===================================================================================

tests/debuginfo/by-value-non-immediate-argument.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
//@ ignore-test // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
2-
//@ min-lldb-version: 310
3-
1+
// The gdb that we use in CI for aarch64-unknown-linux-gnu and x86_64-pc-windows-gnu seems unable
2+
// to handle by-value non-immediate arguments, which is the whole point of this test.
3+
// gdb on those platforms (or the version we test) just prints <optimized out> for structs/tuples
4+
// and attempts to read memory at 0x0 for enums.
5+
//@ ignore-aarch64: #128973
6+
//@ ignore-windows-gnu
7+
8+
//@ min-lldb-version: 1800
49
//@ compile-flags:-g
510

611
// === GDB TESTS ===================================================================================
@@ -42,11 +47,11 @@
4247
// lldb-command:run
4348

4449
// lldb-command:v s
45-
// lldb-check:[...] Struct { a: 1, b: 2.5 }
50+
// lldb-check:[...] Struct { a = 1 b = 2.5 }
4651
// lldb-command:continue
4752

4853
// lldb-command:v x
49-
// lldb-check:[...] Struct { a: 3, b: 4.5 }
54+
// lldb-check:[...] Struct { a = 3 b = 4.5 }
5055
// lldb-command:v y
5156
// lldb-check:[...] 5
5257
// lldb-command:v z

tests/debuginfo/c-style-enum.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ ignore-aarch64
2-
//@ ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
32
//@ min-lldb-version: 310
43

54
//@ compile-flags:-g

tests/debuginfo/cross-crate-spans.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44
//@ min-lldb-version: 310
55

6-
// This fails on lldb 6.0.1 on x86-64 Fedora 28; so mark it macOS-only
7-
// for now.
8-
//@ only-macos
9-
106
//@ aux-build:cross_crate_spans.rs
117
extern crate cross_crate_spans;
128

tests/debuginfo/destructured-for-loop-variable.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
//@ min-lldb-version: 310
22

3-
// This fails on lldb 6.0.1 on x86-64 Fedora 28; so mark it macOS-only
4-
// for now.
5-
//@ only-macos
6-
73
//@ compile-flags:-g
84

95
// === GDB TESTS ===================================================================================

tests/debuginfo/drop-locations.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
//@ ignore-windows
21
//@ ignore-android
3-
//@ ignore-test // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
42
//@ min-lldb-version: 310
3+
//@ ignore-test: #128971
54

65
#![allow(unused)]
76

8-
//@ compile-flags:-g -O -C no-prepopulate-passes
9-
// -O -C no-prepopulate-passes added to work around https://bugs.llvm.org/show_bug.cgi?id=32123
7+
//@ compile-flags:-g
108

119
// This test checks that drop glue code gets attributed to scope's closing brace,
1210
// and function epilogues - to function's closing brace.

tests/debuginfo/embedded-visualizer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//@ compile-flags:-g
22
//@ min-gdb-version: 8.1
33
//@ ignore-lldb
4-
//@ ignore-windows-gnu // emit_debug_gdb_scripts is disabled on Windows
54

65
// === CDB TESTS ==================================================================================
76

tests/debuginfo/empty-string.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//@ ignore-windows failing on win32 bot
21
//@ ignore-android: FIXME(#10381)
32
//@ compile-flags:-g
43
//@ min-gdb-version: 8.1

0 commit comments

Comments
 (0)