linuxgdbarchlinuxglibpython-3.13

GDB not detecting GLib auto-load python scripts


Following this article, GDB is installed in the same prefix as glib (I'm using official distro packages. However, when I run info auto-load python-scripts, I get No auto-load scripts. I have enable python auto-loading, and it looks like the scripts are installed correctly:

/usr/share/gdb/auto-load/
└── usr
    └── lib
        ├── libglib-2.0.so.0.8400.2-gdb.py
        ├── libgobject-2.0.so.0.8400.2-gdb.py
        ├── libgstreamer-1.0.so.0.2602.0-gdb.py
        ├── libisl.so.23.4.0-gdb.py
        └── libstdc++.so.6.0.34-gdb.py

Solution

  • Fixed it by running a program linked with GLIB which had debug symbols