edt_devel
edt_devel

Reputation: 573

Is there a emacs valgrind interface?

I was wondering if there is a reliable emacs interface for valgrind and its different tools? I have searched and sadly not found anything.

It would be interesting to have something to jump to the concerning lines via memcheck.

Thank you in advance.

Upvotes: 5

Views: 1453

Answers (2)

PRouleau
PRouleau

Reputation: 224

Being late at this but I thought I would mention the following:

  • Although the compilation-shell-minor mode will work, you might have to fill in some extra info (as to where the file is located).

You may want to look at some of the code I implemented in my PEL package.

  • As part of my PEL package, I implemented the pel-open-at-point global command that can search and open a file identified by an error message, and jump to specified line/column. It can also be informed about a context to search for the file in using one of several method, selected by customization.
    • That is not restricted to valgrind, you can use it in any mode, including the terminal or shell modes.
    • It also supports glob. So you can type *.c and execute the command on that to get a prompt for the C files it finds, for example.
    • See the PEL PDF for file management for more information on pel-open-at-point. Look at the second page.

Upvotes: 0

Tom Tromey
Tom Tromey

Reputation: 22519

The compilation mode has regexps for this. You may like compilation-shell-minor-mode as well.

Upvotes: 3

Related Questions