[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37527: [PATCH] Install C source code for for debugging help
From: |
Michael Albinus |
Subject: |
bug#37527: [PATCH] Install C source code for for debugging help |
Date: |
Thu, 03 Oct 2019 15:38:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> I'll wait until Monday, then I'll have a Fedora machine @work. Good for
>> adding the Red Hat case.
Finally, I've written the following patch. Comments?
diff --git a/INSTALL b/INSTALL
index 86f9e0080c..efc60bf63d 100644
--- a/INSTALL
+++ b/INSTALL
@@ -214,6 +214,33 @@ like 'apt-get build-dep emacs' (on older systems, replace
'emacs' with
eg 'emacs25'). On Red Hat-based systems, the corresponding command is
'dnf builddep emacs' (on older systems, use 'yum-builddep' instead).
+* GNU/Linux source and debug packages
+
+Many GNU/Linux systems provide separate packages containing the
+sources and debug symbols of Emacs. They are useful if you want to
+check the source code of Emacs primitive functions or debug Emacs on
+the C level.
+
+The names of the packages that you need varies according to the
+GNU/Linux distribution that you use. On Debian-based systems, you can
+install a source package of Emacs with a command like 'apt-get source
+emacs' (on older systems, replace 'emacs' with eg 'emacs25'). The
+target directory for unpacking the source tree is the current
+directory. On Red Hat-based systems, the corresponding command is
+'dnf debuginfo-install emacs', with target directory /usr/src/debug.
+
+Once you have installed the source package, for example at
+/path/to/emacs-26.1, add the following line to your startup file:
+
+ (setq source-directory "/path/to/emacs-26.1")
+
+Emacs debugging symbols are distributed by a debug package. It does
+not exists for every released Emacs package, this depends on the
+distribution. On Debian-based systems, you can install a debug
+package of Emacs with a command like 'apt-get install emacs-dbg' (on
+older systems, replace 'emacs' with eg 'emacs25'). On Red Hat-based
+systems, the corresponding command is 'dnf debuginfo-install emacs'.
+
DETAILED BUILDING AND INSTALLATION:
> Thanks.
Best regards, Michael.
- bug#37527: [PATCH] Install C source code for for debugging help,
Michael Albinus <=