[Gnucash-changes] provide instructions/fix for running GDB (GUD) in emacs

Joshua Sled jsled at cvs.gnucash.org
Sat Oct 8 10:59:27 EDT 2005


Log Message:
-----------
provide instructions/fix for running GDB (GUD) in emacs

Tags:
----
gnucash-gnome2-dev

Modified Files:
--------------
    gnucash:
        HACKING

Revision Data
-------------
Index: HACKING
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/HACKING,v
retrieving revision 1.5.4.4
retrieving revision 1.5.4.5
diff -LHACKING -LHACKING -u -r1.5.4.4 -r1.5.4.5
--- HACKING
+++ HACKING
@@ -114,6 +114,23 @@
    gdb> run -e main -s ../libexec/overrides/gnucash --g-fatal-warning
 
 
+-----
+It may be the case that running GDB from within emacs doesn't work for you,
+with the following error:
+
+[C-u M-x gdb /opt/gnucash-cvs/bin/gnucash-env gdb /usr/bin/guile...
+ ...in buffer *gud-gdb*:]
+
+/opt/gnucash-cvs/libexec/gnucash/overrides/gnucash-env: line 28: exec: -d: invalid option
+exec: usage: exec [-cl] [-a name] file [redirection ...]
+
+jsled needed to re-define a gud.el function as such:
+
+  (defun gud-gdb-massage-args (file args)
+    (let ((l (copy-list args)))
+      (nconc l (list "-cd" (expand-file-name default-directory) "-fullname"))))
+
+
 Using Electric Fence with GnuCash
 ---------------------------------
     % configure --enable-efence


More information about the gnucash-changes mailing list