I want to be able to read it, currently i get:
(lldb) print path
([]const u8) len=7 {
[0] = 116
[1] = 101
[2] = 115
[3] = 116
[4] = 46
[5] = 109
[6] = 100
}
I’m using Jacobs fork.
I want to be able to read it, currently i get:
(lldb) print path
([]const u8) len=7 {
[0] = 116
[1] = 101
[2] = 115
[3] = 116
[4] = 46
[5] = 109
[6] = 100
}
I’m using Jacobs fork.
Did you try print path.ptr?
Yeah,
(lldb) p path.ptr
([*]const u8) 0x000000000130526d
(lldb) p path.ptr.*
(u8) 102
So I guess this would work: p *(char(*)[path.len])path.ptr. If it does, you could save that as a shorthand command – not sure what the correct incantation for that is in LLDB.
This doesn’t work either it’s somehitng to do with the fact that it’s a fork.