How to support Rust debugging post-Tromey?

First of all yes: Thanks for all the hard work you’ve put into the Rust debugging story, @tromey!

I think LLDB is the biggest problem here since upstream LLDB doesn’t take patches for supporting languages other than C/C++ (they recently removed support for Go and, IIRC, even Swift has to maintain its own fork). For GDB, Rust support is merged upstream.

I think a summary of the current state would be great:

  • which things are considered done and expected to work
  • which things are in the pipeline and would need finishing
  • what’s the plan for Rust using Dwarf, i.e. what’s the proposed encoding for traits, enums, etc. (some of this already in the compiler, but I’m not sure it’s documented anywhere).

One thought: Work on debuggers is something where companies that want to support Rust could do a lot of good. Especially if they already have people with experience with the said debuggers.

5 Likes