Skip to content

Commit ecee730

Browse files
committed
Try fixing debuginfo test.
1 parent 40f8227 commit ecee730

File tree

5 files changed

+19
-16
lines changed

5 files changed

+19
-16
lines changed

src/etc/lldb_commands

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)C
1515
type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
1616
type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
1717
type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
18-
type summary add -F lldb_lookup.summary_lookup -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
18+
type summary add -F lldb_lookup.summary_lookup -e -x -h "^core::num::([a-z_]+::)*NonZero<.+>$" --category Rust
1919
type category enable Rust

src/etc/natvis/libcore.natvis

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242
</Type>
4343

4444
<Type Name="core::num::nonzero::NonZero&lt;*&gt;">
45-
<DisplayString>{__0}</DisplayString>
45+
<DisplayString>{__0.__0}</DisplayString>
46+
<Expand>
47+
<ExpandedItem>__0.__0</ExpandedItem>
48+
</Expand>
4649
</Type>
4750

4851
<Type Name="core::num::wrapping::Wrapping&lt;*&gt;">

src/etc/rust_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class RustType(object):
5050
STD_REF_REGEX = re.compile(r"^(core::(\w+::)+)Ref<.+>$")
5151
STD_REF_MUT_REGEX = re.compile(r"^(core::(\w+::)+)RefMut<.+>$")
5252
STD_REF_CELL_REGEX = re.compile(r"^(core::(\w+::)+)RefCell<.+>$")
53-
STD_NONZERO_NUMBER_REGEX = re.compile(r"^core::num::([a-z_]+::)*NonZero.+$")
53+
STD_NONZERO_NUMBER_REGEX = re.compile(r"^core::num::([a-z_]+::)*NonZero<.+>$")
5454

5555
TUPLE_ITEM_REGEX = re.compile(r"__\d+$")
5656

src/tools/compiletest/src/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ impl<'test> TestCx<'test> {
14951495
"^(core::([a-z_]+::)+)Ref<.+>$",
14961496
"^(core::([a-z_]+::)+)RefMut<.+>$",
14971497
"^(core::([a-z_]+::)+)RefCell<.+>$",
1498-
"^core::num::([a-z_]+::)*NonZero.+$",
1498+
"^core::num::([a-z_]+::)*NonZero<.+>$",
14991499
];
15001500

15011501
// In newer versions of lldb, persistent results (the `$N =` part at the start of

tests/debuginfo/numeric-types.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -203,40 +203,40 @@
203203
// lldb-command:run
204204

205205
// lldb-command:print/d nz_i8
206-
// lldb-check:[...]$0 = 11 { __0 = 11 }
206+
// lldb-check:[...]$0 = None { __0 = { 0 = 11 } }
207207

208208
// lldb-command:print nz_i16
209-
// lldb-check:[...]$1 = 22 { __0 = 22 }
209+
// lldb-check:[...]$1 = None { __0 = { 0 = 22 } }
210210

211211
// lldb-command:print nz_i32
212-
// lldb-check:[...]$2 = 33 { __0 = 33 }
212+
// lldb-check:[...]$2 = None { __0 = { 0 = 33 } }
213213

214214
// lldb-command:print nz_i64
215-
// lldb-check:[...]$3 = 44 { __0 = 44 }
215+
// lldb-check:[...]$3 = None { __0 = { 0 = 44 } }
216216

217217
// lldb-command:print nz_i128
218-
// lldb-check:[...]$4 = 55 { __0 = 55 }
218+
// lldb-check:[...]$4 = None { __0 = { 0 = 55 } }
219219

220220
// lldb-command:print nz_isize
221-
// lldb-check:[...]$5 = 66 { __0 = 66 }
221+
// lldb-check:[...]$5 = None { __0 = { 0 = 66 } }
222222

223223
// lldb-command:print/d nz_u8
224-
// lldb-check:[...]$6 = 77 { __0 = 77 }
224+
// lldb-check:[...]$6 = None { __0 = { 0 = 77 } }
225225

226226
// lldb-command:print nz_u16
227-
// lldb-check:[...]$7 = 88 { __0 = 88 }
227+
// lldb-check:[...]$7 = None { __0 = { 0 = 88 } }
228228

229229
// lldb-command:print nz_u32
230-
// lldb-check:[...]$8 = 99 { __0 = 99 }
230+
// lldb-check:[...]$8 = None { __0 = { 0 = 99 } }
231231

232232
// lldb-command:print nz_u64
233-
// lldb-check:[...]$9 = 100 { __0 = 100 }
233+
// lldb-check:[...]$9 = None { __0 = { 0 = 100 } }
234234

235235
// lldb-command:print nz_u128
236-
// lldb-check:[...]$10 = 111 { __0 = 111 }
236+
// lldb-check:[...]$10 = None { __0 = { 0 = 111 } }
237237

238238
// lldb-command:print nz_usize
239-
// lldb-check:[...]$11 = 122 { __0 = 122 }
239+
// lldb-check:[...]$11 = None { __0 = { 0 = 122 } }
240240
#![feature(generic_nonzero)]
241241

242242
use std::num::*;

0 commit comments

Comments
 (0)