From: Nick Roberts <nickrob@snap.net.nz>
To: Nordlöw <per.nordlow@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Multi-Frame/Window Debugging Problem
Date: Wed, 12 Sep 2007 20:05:40 +1200 [thread overview]
Message-ID: <18151.40404.733821.758966@kahikatea.snap.net.nz> (raw)
In-Reply-To: <1189512026.119620.123790@o80g2000hse.googlegroups.com>
> If I run "gdb -nx --annotate=3 <prog>" it works! Great!
>
> I had previously changed my .gdbinit file to contain
> set ann 1
> because gdb-valgrind-integration rqeuired that then.
> This seems to the source of my gdba-problem (as -nx overrides that).
The variable gdb-valgrind-integration isn't part of Emacs but if it relates to
something I posted several years ago, note that you actually needn't put
anything in .gdbinit for valgrind. Just do:
Run gdb (like this): valgrind --db-attach=yes ~/myprog
and after you have attached to GDB, type:
(gdb) set ann 3
(gdb) frame
This is like starting with "gdb --annotate=3" and gives you the graphical
interface. You can do "M-x gdb-many-windows" for the other buffers. Use
"set ann 1" if you just want the old text command mode.
I was quite pleased when I first found out about this but I've not used
Valgrind much and it is only useful for memory violations. I suspect
Valgrind is used more often to check for memory leaks.
At one time you could also use M-x compile to locate errors generated
non-interactively by valgrind:
2002-07-09 Ole Aamot <ole@gnu.org>
* compile.el (compilation-error-regexp-alist):
Recognize Valgrind messages.
However, someone appears to have removed this from Emacs 22.1. I'll have to
find out why.
--
Nick http://www.inet.net.nz/~nickrob
prev parent reply other threads:[~2007-09-12 8:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-05 14:15 Multi-Frame/Window Debugging Problem Nordlöw
2007-09-06 10:09 ` Nick Roberts
[not found] ` <mailman.414.1189076872.18990.help-gnu-emacs@gnu.org>
2007-09-11 12:00 ` Nordlöw
2007-09-12 8:05 ` Nick Roberts [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18151.40404.733821.758966@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=help-gnu-emacs@gnu.org \
--cc=per.nordlow@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.