From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: scratch/igc cedb01b6c9c: ; * README-IGC: Fix typos and wording. Date: Fri, 13 Dec 2024 15:06:06 +0200 Message-ID: <865xnnybpd.fsf@gnu.org> References: <173409236461.371361.12797265888488865943@vcs3.savannah.gnu.org> <20241213121925.3D2EE7667E7@vcs3.savannah.gnu.org> <87jzc3hi1e.fsf@protonmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21731"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 13 14:06:50 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tM5Na-0005V6-18 for ged-emacs-devel@m.gmane-mx.org; Fri, 13 Dec 2024 14:06:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tM5Mx-0000NH-AF; Fri, 13 Dec 2024 08:06:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tM5Mw-0000N6-OA for emacs-devel@gnu.org; Fri, 13 Dec 2024 08:06:10 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tM5Mv-0004I1-U1; Fri, 13 Dec 2024 08:06:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=KBuJx5WfVZ6nLIOmOVtQwA0iiUvMf6ARRWqth6IfViM=; b=mCqbQTOWGhNJ rkBySJxvmKc+7JvCcIulASxYXwJIF9nXhgwoJzPTXoPSR0n4W7BqwXvi5BgnPgNkuIeY0AR2t7isJ 3LF66nSxewZwEhL7Ipon++lFickT9baT3haPyEBPGF25X8m3ByXC/5H8q0yb4HjsraBdnr5LYv7Ht 87o4GrU+2CAk0/JrFT3kIf+r+o7AH8De/705XlvDE1CZqoZm+eODLQsvE/JKPQJ547+xctbhuAYAF LWOocYjVcKP7uvSdxeCQNJLmtbbGHYKOoKLj8WTKm/8FHXwupY6h2Ud4VBd0T39Q52dlpfcVD/YGk 5fc64aVroIp9JWmZDfNBCQ==; In-Reply-To: <87jzc3hi1e.fsf@protonmail.com> (message from Pip Cet on Fri, 13 Dec 2024 12:42:03 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326453 Archived-At: > Date: Fri, 13 Dec 2024 12:42:03 +0000 > From: Pip Cet > Cc: Eli Zaretskii > > > -It's recommended to use the .gdbinit file in the src/ subdirectory, > > -which configures gdb not to stop in this situation. > > +part of its normal operation. When running Emacs with MPS support in a > > +debugger such as GDB, it is important to take this into account, because > > +the debugger might stop when this signal is raised, and make it look > > +like Emacs segfaulted. > > Can we lose that last half-sentence? Emacs did segfault, it's just that > the segfault was expected, so this will only cause confusion. I wanted to distinguish between a real crash and SIGSEGV that is part of "normal" MPS operation. Feel free to suggest a different wording, but the distinction is important to mention, because otherwise it is not clear why this is at all an issue. > > +If you use GDB, it's recommended to use the .gdbinit file in the src/ > > +subdirectory, which configures GDB not to stop in this situation. > > +Starting GDB from the src directory will cause it automatically load and > > +read the file, subject to the "auto-load safe-path" setting; > > +alternatively, you can force GDB to read that file manually, after > > +starting the debugger: > > + > > + (gdb) source /path/to/emacs-igc/src/.gdbinit > > Can we shorten this to just > > > +If you use GDB, it's recommended to use the .gdbinit file in the src/ > > +subdirectory: > > + > > + (gdb) source /path/to/emacs-igc/src/.gdbinit > > ? I think those few people who use gdb distributions which allow > auto-loading .gdbinit files will know they can skip this step (and if > they don't, no harm done). The text you pushed makes it sound like we're > advising people to change the auto-load safe-path setting to include the > current directory, and we definitely don't want to do that. No, we don't advise anything like that. We just explain why GDB might say something like warning: File "/foo/bar/emacs/branch/src/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir;$datadir/../auto-load". To enable execution of this file add add-auto-load-safe-path /foo/bar/emacs/branch/src/.gdbinit line to your configuration file "~/.config/gdb/gdbinit". To completely disable this security protection add set auto-load safe-path / line to your configuration file "~/.config/gdb/gdbinit". For more information about this security protection see the "Auto-loading safe path" section in the GDB manual. E.g., run from the shell: info "(gdb)Auto-loading safe path" We ask people to try the branch, but we don't expect them to be proficient in using GDB, let alone be GDB experts. Many people are very confused when they use GDB, and need every piece of advice we can provide to feel "at home" with GDB. > (I intentionally omitted the "If you use GDB" part: we don't want people > to use lldb on GNU/Linux systems, which will result in less useful bug > reports) The information there is specific to GDB, so making it sound like it's applicable to every debugger will unnecessarily confuse people. On macOS, using GDB is not easy, to say the least, and we do want people to test the branch on that platform as well.