Closed
Description
For UI:s that wrap GDB, the current design of the pretty printer loading library makes it cumbersome and very unergonomic to debug rust applications. This is highly unfortunate.
The problem is the rust-gdb
wrapper script and the design of the python pretty printers; one can't simply do
> gdb fooapp
> gdb> source PATH/TO/gdb_load_rust_pretty_printers.py
This basically means that, for instance a GUI needs to know what language is being debugged before actually starting debugging.
Instead, for a GUI, once the debuggee has been loaded it can query the language (via the DWARF debug info) and then take action on what to do. But this requires that gdb_load_rust_pretty_printers.py
is "source'able" from GDB, after GDB has been spawned - which it currently is not. An upcoming PR will solve this issue.