From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19551 invoked by alias); 3 Mar 2007 13:00:17 -0000 Received: (qmail 19516 invoked by uid 22791); 3 Mar 2007 13:00:16 -0000 X-Spam-Check-By: sourceware.org Received: from mailgw3.ericsson.se (HELO mailgw3.ericsson.se) (193.180.251.60) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 03 Mar 2007 13:00:08 +0000 Received: from mailgw3.ericsson.se (unknown [127.0.0.1]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id E795B20565; Sat, 3 Mar 2007 14:00:05 +0100 (CET) X-AuditID: c1b4fb3c-aa1bfbb000004e66-b3-45e97155a989 Received: from esealmw127.eemea.ericsson.se (unknown [153.88.254.122]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id CFFBB20415; Sat, 3 Mar 2007 14:00:05 +0100 (CET) Received: from esealmw129.eemea.ericsson.se ([153.88.254.177]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Sat, 3 Mar 2007 13:58:45 +0100 Received: from mikro.mikro ([159.107.199.0]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Sat, 3 Mar 2007 13:58:44 +0100 Received: from localhost (localhost [127.0.0.1]) by mikro.mikro (Postfix) with ESMTP id EE1A4191831; Sat, 3 Mar 2007 13:58:43 +0100 (CET) Subject: Re: (Not) debugging STL From: =?ISO-8859-1?Q?Alp=E1r_J=FCttner?= To: Nick Roberts Cc: Daniel Jacobowitz , gdb@sourceware.org In-Reply-To: <17897.23824.618849.817120@kahikatea.snap.net.nz> 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> <17897.23824.618849.817120@kahikatea.snap.net.nz> Content-Type: text/plain Date: Sat, 03 Mar 2007 13:00:00 -0000 Message-Id: <1172926723.4011.11.camel@mikro.mikro> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit 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/msg00042.txt.bz2 > > 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. At first, I would simply write an emacs function that iterates the gdb 'step' command until we get out of any files whose full name starts say /usr. > > > For example how to obtain the file name of the currently > > debugged line in emacs/gud/gdb? > ... > from the command line, then step a few times. You'll see the current line, > that Emacs uses, get printed out. I understand, that emacs parses this line, so I would like to know how to have emacs to tell me the file name. Regards, Alpar