bug-gnu-emacs
[Top][All Lists]
Advanced

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

Patch for Valgrind support in compile.el


From: Ole Aamot
Subject: Patch for Valgrind support in compile.el
Date: Tue, 09 Jul 2002 10:20:31 +0200

The patch is against emacs/lisp/progmodes/compile.el on
subversions.gnu.org.  (I assign the change to the FSF.)

Happy hacking.

http://www.aamot.org/ole/software/valgrind-in-emacs-2002-07-09.patch

2002-07-09  Ole Aamot  <ole@gnu.org>

        * compile.el: Add regexp for Valgrind (a memory debugger
        for x86-GNU/Linux) inside compilation-error-regexp-alist.

        Kudos to Hans Petter Jansson <hpj@ximian.com> for regexp.

Index: compile.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/compile.el,v
retrieving revision 1.257
diff -u -b -r1.257 compile.el
--- compile.el  14 Jun 2002 13:58:28 -0000      1.257
+++ compile.el  9 Jul 2002 08:17:39 -0000
@@ -1,6 +1,6 @@
 ;;; compile.el --- run compiler as inferior of Emacs, parse error messages
 
-;; Copyright (C) 1985, 86, 87, 93, 94, 95, 96, 97, 98, 1999, 2001
+;; Copyright (C) 1985, 86, 87, 93, 94, 95, 96, 97, 98, 1999, 2001, 2002
 ;;  Free Software Foundation, Inc.
 
 ;; Author: Roland McGrath <roland@gnu.org>
@@ -369,6 +369,12 @@
     ("\\(Error\\|Warning\\) \\(\\([FEW][0-9]+\\) \\)?\
 \\([a-zA-Z]?:?[^:( \t\n]+\\)\
  \\([0-9]+\\)\\([) \t]\\|:[^0-9\n]\\)" 4 5)
+
+    ;; Valgrind (memory debugger for x86 GNU/Linux):
+    ;;  ==1332==    at 0x8008621: main (vtest.c:180)
+    ;; Currently this regexp only matches the first error.
+    ;; Thanks to Hans Petter Jansson <hpj@ximian.com> for his regexp wisdom.
+    ("^==[0-9]+==[^(]+\(([^:]+):([0-9]+)" 1 2)
 
     ;; 4.3BSD lint pass 2
     ;;         strcmp: variable # of args. llib-lc(359)  ::  
/usr/src/foo/foo.c(8)



reply via email to

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