[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25668: 25.1; Emacs GDBINIT file error?

From: Eli Zaretskii
Subject: bug#25668: 25.1; Emacs GDBINIT file error?
Date: Thu, 09 Feb 2017 22:52:07 +0200

> From: Live System User <address@hidden>
> Date: Thu, 09 Feb 2017 13:16:52 -0500
>         This is what I see whe starting up GDB in Emacs:
> 0. emacs -Q &
> 1. M-x gdb
> gdb -i=mi /usr/bin/emacs
> Current directory is /usr/bin/
> GNU gdb (GDB) Fedora 7.11-66.fc24
> Copyright (C) 2016 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-redhat-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> /home/liveuser/.gdbinit:19: Error in sourced command file:
> No symbol table is loaded.  Use the "file" command.
> Reading symbols from /usr/bin/emacs...Reading symbols from 
> /usr/bin/emacs...(no debugging symbols found)...done.
> (no debugging symbols found)...done.
> (gdb) 

This is normal: your Emacs binary was stripped of any symbols, so you
cannot debug it on the source level, and all the commands in .gdbinit
are useless in that case.

If you want to debug Emacs, you need to get an unstripped binary.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]