No debugging symbols found

When I try to run gdb emacs, I get the following message (truncated):

GNU gdb (GDB) 13.2
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for /usr/bin/emacs-28.2
(No debugging symbols found in emacs)

To resolve this, I would like to build and install Emacs with debugging symbols. However, I would prefer to achieve this using paru as opposed to downloading the source files directly. Can it be done?

I think you will probably have to enable/add the extra-debug repo in pacman.conf.
https://wiki.archlinux.org/title/Debugging/Getting_traces#Installing_debug_packages
And then install emacs-debug or a package that sounds like a debug package.

“And then install emacs-debug or a package that sounds like a debug package.” I’m not finding any.

I checked one of the mirror sites, seems like there isn’t even an extra-debug directory, so the mirror you use must have it.

pacman -Ss emacs-debug
extra-debug/emacs-debug 28.2-2
Detached debugging symbols for emacs

If you add the GeoDNS mirror to your mirror list and update/sync your database it should show up.

Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch

A few mirrors currently distribute debug packages in accessible repositories. These are sponsored mirrors controlled by Arch Linux and are given access to the debug repositories.

https://geo.mirror.pkgbuild.com (GeoDNS mirror)
1 Like

What are you trying to do?

Try downloading the package build for emacs-git and changing the CFLAGS, but I know very little C or C++, so no ideas on that!!

This might help:

https://aur.archlinux.org/packages/emacs-git

Then makepkg -si

The problem is the core is C, most of the backend is emacs lisp, so unsure if you can debug it.

1 Like