[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question on debugging emacs with gdb
From: |
Nick Roberts |
Subject: |
Re: Question on debugging emacs with gdb |
Date: |
Mon, 28 Feb 2005 14:32:08 +1300 |
> > Start GDB from the Emacs's src directory. There's a .gdbinit file
> > there that takes care of this problem. (The etc/DEBUG file actually
> > tells you that as its first advice.)
>
>
> As far as I can determine, my gdb instance is running with this
> .gdbinit.
>
> Heres gdb:s startup message:
>
> GNU gdb Red Hat Linux (6.0post-0.20040223.19rh)
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and
> you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for
> details.
> This GDB was configured as "i386-redhat-linux-gnu".
> .gdbinit:22: Error in sourced command file:
^^^^^^^^^^^^^^^^^^
> No symbol table is loaded. Use the "file" command.
^^^^^^^^^^^^^^^^^^^^^^^^^
Start GDB with 'gdb emacs' not just 'gdb'. Then there should be no error,
GDB will read the rest of .gdbinit and C-g will be handled properly.
Nick
> Then I do:
>
> attach PID
>
> all from different screen windows in a screen session running under ssh.