From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17990 invoked by alias); 6 Feb 2003 21:55:27 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 17967 invoked from network); 6 Feb 2003 21:55:26 -0000 Received: from unknown (HELO white) (68.14.146.65) by 172.16.49.205 with SMTP; 6 Feb 2003 21:55:26 -0000 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 18gtzR-00021v-00 for ; Thu, 06 Feb 2003 16:55:25 -0500 Date: Thu, 06 Feb 2003 21:55:00 -0000 From: Bob Rossi To: gdb@sources.redhat.com Subject: GDB/MI absolute path Message-ID: <20030206215525.GC7441@white> Mail-Followup-To: gdb@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-SW-Source: 2003-02/txt/msg00138.txt.bz2 Hello, I've asked this question twice on the gdb mailing list, and received no response. Does anyone know the answer? I am tring to successfully get positive information out of GDB/MI. Should I be using gdb-5.3 or the latest cvs? They act different. Also, what is the best way to ask mi for the absolute path to the current source file. This wasn't a problem using annotate 1 or 2, and I can't figure out how to get it using mi. I used to just do this: (gdb) list test.c:1,1 1 #include (gdb) info source Current source file is test.c Compilation directory is /home/bob/cvs/gdb/gdb/ Located in /home/bob/cvs/gdb/gdb/test.c Contains 9 lines. Source language is c. Compiled with stabs debugging format. (gdb) But with mi I get this: (gdb) list test.c:1,1 &"list test.c:1,1\n" ^done,line="1",file="test.c" (gdb) info source &"info source\n" ~"Current source file is test.c\n" ~"Compilation directory is /home/bob/cvs/gdb/gdb/\n" ~"Source language is c.\n" ~"Compiled with stabs debugging format.\n" ~"Does not include preprocessor macro info.\n" ^done (gdb) GDB/MI does not have the 'Located in' section. Is this done on purpose? I am looking at gdb/mi/mi-cmds.c for a command that would be helpfull but I don't see any. Thanks, Bobby