You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -84,7 +85,12 @@ GDB supports the use of a structured Python script, called a *pretty printer*, t
84
85
These scripts are embedded using the `gdb_script_file` meta item.
85
86
For detailed information on pretty printers, refer to GDB's [pretty print documentation].
86
87
87
-
Consider a crate with this directory structure:
88
+
Embedded pretty printers are not automatically loaded when debugging a binary under GDB.
89
+
There are two ways to enable auto-loading embedded pretty printers:
90
+
1. Launch GDB with extra arguments to explicitly add a directory or binary to the auto-load safe path: `gdb -iex "set auto-load safe-path path/to/binary" path/to/binary` (For more information, see GDB's [auto-loading documentation])
91
+
1. Create a file named `gdbinit` under `$HOME/.config/gdb` (you may need to create the directory if it doesn't already exist). Add the following line to that file: `add-auto-load-safe-path path/to/binary`.
92
+
93
+
Consider a crate called `foobar` with this directory structure:
0 commit comments