Skip to content

Commit 756a70c

Browse files
Fix vec-slices debuginfo test for GDB.
1 parent 91d8086 commit 756a70c

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/test/debuginfo/vec-slices.rs

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// ignore-windows
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
@@ -13,21 +12,21 @@
1312
// gdb-command:print singleton.length
1413
// gdb-check:$2 = 1
1514
// gdbg-command:print *((i64[1]*)(singleton.data_ptr))
16-
// gdbr-command:print *(singleton.data_ptr as &[i64; 1])
15+
// gdbr-command:print *(singleton.data_ptr as *const [i64; 1])
1716
// gdbg-check:$3 = {1}
1817
// gdbr-check:$3 = [1]
1918

2019
// gdb-command:print multiple.length
2120
// gdb-check:$4 = 4
2221
// gdbg-command:print *((i64[4]*)(multiple.data_ptr))
23-
// gdbr-command:print *(multiple.data_ptr as &[i64; 4])
22+
// gdbr-command:print *(multiple.data_ptr as *const [i64; 4])
2423
// gdbg-check:$5 = {2, 3, 4, 5}
2524
// gdbr-check:$5 = [2, 3, 4, 5]
2625

2726
// gdb-command:print slice_of_slice.length
2827
// gdb-check:$6 = 2
2928
// gdbg-command:print *((i64[2]*)(slice_of_slice.data_ptr))
30-
// gdbr-command:print *(slice_of_slice.data_ptr as &[i64; 2])
29+
// gdbr-command:print *(slice_of_slice.data_ptr as *const [i64; 2])
3130
// gdbg-check:$7 = {3, 4}
3231
// gdbr-check:$7 = [3, 4]
3332

@@ -53,16 +52,16 @@
5352
// gdbr-command:print MUT_VECT_SLICE.length
5453
// gdb-check:$14 = 2
5554
// gdbg-command:print *((i64[2]*)('vec_slices::MUT_VECT_SLICE'.data_ptr))
56-
// gdbr-command:print *(MUT_VECT_SLICE.data_ptr as &[i64; 2])
55+
// gdbr-command:print *(MUT_VECT_SLICE.data_ptr as *const [i64; 2])
5756
// gdbg-check:$15 = {64, 65}
5857
// gdbr-check:$15 = [64, 65]
5958

60-
//gdb-command:print mut_slice.length
61-
//gdb-check:$16 = 5
62-
//gdbg-command:print *((i64[5]*)(mut_slice.data_ptr))
63-
//gdbr-command:print *(mut_slice.data_ptr as &[i64; 5])
64-
//gdbg-check:$17 = {1, 2, 3, 4, 5}
65-
//gdbr-check:$17 = [1, 2, 3, 4, 5]
59+
// gdb-command:print mut_slice.length
60+
// gdb-check:$16 = 5
61+
// gdbg-command:print *((i64[5]*)(mut_slice.data_ptr))
62+
// gdbr-command:print *(mut_slice.data_ptr as *const [i64; 5])
63+
// gdbg-check:$17 = {1, 2, 3, 4, 5}
64+
// gdbr-check:$17 = [1, 2, 3, 4, 5]
6665

6766

6867
// === LLDB TESTS ==================================================================================

0 commit comments

Comments
 (0)