unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Patch for Valgrind support in compile.el
@ 2002-07-09  8:20 Ole Aamot
  0 siblings, 0 replies; only message in thread
From: Ole Aamot @ 2002-07-09  8:20 UTC (permalink / raw)


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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-09  8:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-09  8:20 Patch for Valgrind support in compile.el Ole Aamot

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).