File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)R
17
17
type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
18
18
type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
19
19
type summary add -F lldb_lookup.summary_lookup -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
20
- type summary add -F lldb_lookup.summary_lookup -e -x -h "^&(mut )?std::path::Path$" --category Rust
21
20
type summary add -F lldb_lookup.summary_lookup -e -x -h "^(std::([a-z_]+::)+)PathBuf$" --category Rust
21
+ type summary add -F lldb_lookup.summary_lookup -e -x -h "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
22
22
type category enable Rust
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ class RustType(object):
67
67
STD_REF_MUT_REGEX = re .compile (r"^(core::(\w+::)+)RefMut<.+>$" )
68
68
STD_REF_CELL_REGEX = re .compile (r"^(core::(\w+::)+)RefCell<.+>$" )
69
69
STD_NONZERO_NUMBER_REGEX = re .compile (r"^core::num::([a-z_]+::)*NonZero.+$" )
70
- STD_PATH_REGEX = re .compile (r"^&(mut )?std::path::Path$" )
71
70
STD_PATHBUF_REGEX = re .compile (r"^(std::([a-z_]+::)+)PathBuf$" )
71
+ STD_PATH_REGEX = re .compile (r"^&(mut )?(std::([a-z_]+::)+)Path$" )
72
72
73
73
TUPLE_ITEM_REGEX = re .compile (r"__\d+$" )
74
74
Original file line number Diff line number Diff line change 6
6
7
7
// lldb-command:run
8
8
9
- // lldb-command:print path
10
- // lldb-check:[...]$0 = strong=11, weak=1 { value = 111 }
11
9
// lldb-command:print pathbuf
12
- // lldb-check:[...]$1 = strong=21, weak=1 { data = 222 }
10
+ // lldb-check:[...]$0 = "/some/path" { inner = "/some/path" { inner = { inner = size=10 { [0] = '/' [1] = 's' [2] = 'o' [3] = 'm' [4] = 'e' [5] = '/' [6] = 'p' [7] = 'a' [8] = 't' [9] = 'h' } } } }
11
+ // lldb-command:po pathbuf
12
+ // lldb-check:"/some/path"
13
+ // lldb-command:print path
14
+ // lldb-check:[...]$1 = "/some/path" { data_ptr = [...] length = 10 }
13
15
14
16
use std:: path:: Path ;
15
17
16
18
fn main ( ) {
17
19
let path = Path :: new ( "/some/path" ) ;
18
- let pathbuf = & path. to_path_buf ( ) ;
20
+ let pathbuf = path. to_path_buf ( ) ;
19
21
20
22
zzz ( ) ; // #break
21
23
}
You can’t perform that action at this time.
0 commit comments