From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: Multi-Frame/Window Debugging Problem Date: Wed, 12 Sep 2007 20:05:40 +1200 Message-ID: <18151.40404.733821.758966@kahikatea.snap.net.nz> References: <1189001705.177521.318440@57g2000hsv.googlegroups.com> <1189512026.119620.123790@o80g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189584375 3402 80.91.229.12 (12 Sep 2007 08:06:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2007 08:06:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?iso-8859-1?B?Tm9yZGz2dw==?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 12 10:06:08 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IVNEc-0004OV-AS for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Sep 2007 10:06:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVNEc-0001g3-35 for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Sep 2007 04:06:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IVNEO-0001fu-39 for help-gnu-emacs@gnu.org; Wed, 12 Sep 2007 04:05:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IVNEL-0001eP-HI for help-gnu-emacs@gnu.org; Wed, 12 Sep 2007 04:05:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVNEK-0001eF-KQ for help-gnu-emacs@gnu.org; Wed, 12 Sep 2007 04:05:49 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IVNEJ-0002WY-Po for help-gnu-emacs@gnu.org; Wed, 12 Sep 2007 04:05:48 -0400 Original-Received: from kahikatea.snap.net.nz (130.63.255.123.dynamic.snap.net.nz [123.255.63.130]) by viper.snap.net.nz (Postfix) with ESMTP id A465D3D9209; Wed, 12 Sep 2007 20:05:44 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 23F3D8FC6D; Wed, 12 Sep 2007 20:05:42 +1200 (NZST) Original-Newsgroups: gnu.emacs.help In-Reply-To: <1189512026.119620.123790@o80g2000hse.googlegroups.com> X-Mailer: VM 7.19 under Emacs 23.0.50.7 X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47520 Archived-At: > If I run "gdb -nx --annotate=3 " 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 * 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