Rust-gdb does not work on MacOS


#1

Hi folks,

I’m trying to use rust-gdb on MacOS, however, it doesn’t work as expected. To be specific, I see tons of warnings when debugging a rust binary.

warning: can't find symbol '_ZN112_$LT$alloc..string..String$u20$as$u20$core..convert..From$LT$alloc..borrow..Cow$LT$$u27$a$C$$u20$str$GT$$GT$$GT$4from17h06dc3a8c1ad79dddE' in minsymtab

warning: can't find symbol 'vtable.0.llvm.7368307928434413524' in minsymtab

warning: can't find symbol '_ZN40_$LT$alloc..raw_vec..RawVec$LT$T$GT$$GT$14from_raw_parts17h2d0047ad065061c4E' in minsymtab

warning: can't find symbol '_ZN40_$LT$alloc..raw_vec..RawVec$LT$T$GT$$GT$8into_box17hd64facbd1d22e3beE' in minsymtab

warning: can't find symbol '_ZN49_$LT$alloc..raw_vec..RawVec$LT$T$C$$u20$A$GT$$GT$11allocate_in17h29f70a97cc8bdab9E' in minsymtab

warning: can't find symbol 'byte_str.6.llvm.16721512207272633107' in minsymtab

warning: can't find symbol '_ZN4core3cmp3Ord3max17hba9ddc50684e02cfE' in minsymtab
...

rust-lldb works pretty well, so I think the debug symbols are in the right place. Any thoughts?