0

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
1
  • You should check show auto-load safe-path and show configuration. Hopefully the auto-load safe-path includes something like $datadir/auto-load, the $datadir can be seen in the show configuration output as --with-gdb-datadir=.... With luck your data directory will be /usr/share/gdb. If that all looks good then you can do set debug auto-load on and restart your inferior, there will be a lot of output as GDB tried to find files to auto-load, but if you go through it you'll hopefully see what GDB is/isn't trying to load. Commented Jun 9 at 9:48

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.