[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Added support for debugging emacs daemon
From: |
Michael Welsh Duggan |
Subject: |
Re: Added support for debugging emacs daemon |
Date: |
Tue, 12 Feb 2019 11:59:15 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
>> From: Michael Welsh Duggan <address@hidden>
>> Date: Tue, 12 Feb 2019 10:44:01 -0500
>>
>> I was recently in a position where I wanted to run "emacs --daemon"
>> under gdb. After a few fumbles, I hit upon the following. I suggest
>> either adding this or something like this to .gdbinit or mentioning it
>> in DEBUG:
>>
>> # Follow forks until any possible daemonization is over
>> set follow-fork-mode child
>> tbreak init_signals
>> commands
>> set follow-fork-mode parent
>> end
>
> Wouldn't this get in the way when debugging Emacs which launches
> subprocesses?
No. That's why follow-fork-mode is turned back to parent after hitting
init_signals.
--
Michael Welsh Duggan
(address@hidden)