From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25009 invoked by alias); 3 Mar 2007 11:34:01 -0000 Received: (qmail 24998 invoked by uid 22791); 3 Mar 2007 11:34:00 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 03 Mar 2007 11:33:42 +0000 Received: from kahikatea.snap.net.nz (92.61.255.123.dynamic.snap.net.nz [123.255.61.92]) by viper.snap.net.nz (Postfix) with ESMTP id 9BA923D9B83; Sun, 4 Mar 2007 00:33:38 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id AE7264F6DD; Sun, 4 Mar 2007 00:33:37 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17897.23824.618849.817120@kahikatea.snap.net.nz> Date: Sat, 03 Mar 2007 11:34:00 -0000 To: =?ISO-8859-1?Q?Alp=E1r_J=FCttner?= Cc: Daniel Jacobowitz , gdb@sourceware.org Subject: Re: (Not) debugging STL In-Reply-To: <1172864572.4272.21.camel@mikro.mikro> References: <1172750690.4155.24.camel@mikro.mikro> <20070301121854.GA10896@caradoc.them.org> <1172752794.4155.35.camel@mikro.mikro> <20070301124621.GA11292@caradoc.them.org> <1172864572.4272.21.camel@mikro.mikro> X-Mailer: VM 7.19 under Emacs 22.0.94.3 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00041.txt.bz2 > > > Do gdb have some scripting language? If yes, would it be possible to > > > implement a macro that simply iterates 'step' while we are in a file > > > under /usr directory? > > > > GDB's current scripting language is not good enough for this. I hope > > to add a more powerful one this year. > > Then, my next idea is to use the gdb interface of emacs. It should be > trivial to do a lisp function doing this, but I couldn't figure out how > to do that. I'm not sure that I understand exactly what you're trying to do, but if Daniel says it can't be done in GDB, then I dont think it can be done in Emacs, as Emacs can only use the output that GDB gives it. > For example how to obtain the file name of the currently > debugged line in emacs/gud/gdb? This bit is straightforward: Emacs 21 uses --fullname option (although it is hidden to the user). For example, try: gdb --fullname `prog' (gdb) start from the command line, then step a few times. You'll see the current line, that Emacs uses, get printed out. -- Nick http://www.inet.net.nz/~nickrob