emacs-devel
[Top][All Lists]
Advanced

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

Re: MPS: Win64 testers?


From: Eli Zaretskii
Subject: Re: MPS: Win64 testers?
Date: Sun, 01 Sep 2024 22:27:46 +0300

> From: Kien Nguyen <kien.n.quang@gmail.com>
> Date: Sun, 1 Sep 2024 11:54:04 -0700
> Cc: sebastian@sebasmonia.com, pipcet@protonmail.com, emacs-devel@gnu.org, 
>       yantar92@posteo.net
> 
> > Does the alternative change below solve your problem when attaching to
> > Emacs??
> 
> Sorry, I didn't notice this email before answering the other one. :)
> 
> Yes, that would also solve my issue. The `if` check should be changed to
> a `while` loop, as `remove_w32_kbdhook` will just decrease the reference
> count if there's still more than one reference to the `kbdhook`.
> 
> On the other hand, doesn't this require me to run `gdb` under Emacs's
> `src`?

Yes.  But it doesn't make sense to seriously debug Emacs in any other
way.  And the MPS build, in particular, needs the setting of SIGSEGV
to avoid stopping due to GC.

>So, for others who want to try the pre-built version and get the
> debug backtrace, they will need to download the `gdbinit` file or clone
> the Emacs source code and run `gdb` from the `src` folder. That can be a
> bit of work, though.

That's true, but people who don't have .gdbinit and the sources cannot
usefully debug Emacs anyway.  So I'm not worried about that.

The advantage of this method is that it affects only those who debug
Emacs, not everybody else.  That's a significant advantage in my book.



reply via email to

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