Skip to content

GDB Usage unnecessarily requires rust-gdb (PR Provided) #111961

Closed
@theIDinside

Description

@theIDinside

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions