emacs-devel
[Top][All Lists]
Advanced

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

Re: Debugging M-x gdb


From: Eli Zaretskii
Subject: Re: Debugging M-x gdb
Date: Fri, 31 Mar 2023 13:55:38 +0300

> From: Manuel Giraud <manuel@ledu-giraud.fr>
> Cc: emacs-devel@gnu.org
> Date: Fri, 31 Mar 2023 10:09:39 +0200
> 
> > If it's indeed Emacs, then when Emacs starts consuming high CPU,
> > attach GDB to it, then type this:
> >
> >   (gdb) source /path/to/emacs/src/.gdbinit
> >   (gdb) thread apply all bt
> 
> I've tried this recipe (all Emacs with -Q) but "thread apply all bt"
> does not produce any output.

Doesn't produce any output after attaching GDB to the Emacs process
which consumes CPU?  That's not possible.  Please show all the
commands you did, starting from invoking Emacs that will later consume
CPU, including commands inside Emacs and outside it.

Note that the GDB you attach to Emacs should be a new GDB process, not
the one you ran inside Emacs.



reply via email to

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