emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs without threads


From: Eli Zaretskii
Subject: Re: Emacs without threads
Date: Fri, 22 Dec 2023 13:48:51 +0200

> From: Michael Albinus <michael.albinus@gmx.de>
> Cc: Manuel Giraud <manuel@ledu-giraud.fr>,  emacs-devel@gnu.org
> Date: Fri, 22 Dec 2023 10:20:53 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> Hi Eli,
> 
> >> I'm using EXWM and start emacs last from my .xsession.  But, as for
> >> other wm, I start it with a dbus-launch like this:
> >>
> >>    dbus-launch --sh-syntax --exit-with-x11 emacs
> >>
> >> If I replace this line with just "emacs", I do not experience the freeze
> >> of GDB sessions.  Thanks.
> >
> > Glad I could help you.
> >
> > I don't what dbus-launch does.  Michael, can you help us understand
> > why it interferes with debugging via gdb-mi.el?
> 
> dbus-launch with its above arguments starts the D-Bus session bus as
> daemon. It sets the respective environment variables and starts the
> given program (emacs in this case) with the new environment.
> 
> The backside of this approach is, that this D-Bus environment is known
> only to the started Emacs instance and its derived programs. The cannot
> communicate with other programs via D-Bus, if these programs are started
> outside the dbus-launch invocation.
> 
> I don't know, whether this is relevant for gdb-mi.el.

Thanks.  Do you have an idea what could be those threads that Manuel
saw when debugging such an Emacs?

Manuel, would you please describe in detail how you debug such an
Emacs?  That is, how you start GDB in gdb-mi, and how you "connect"
GDB to the Emacs session launched as above?



reply via email to

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