From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16638 invoked by alias); 21 Mar 2003 09:53:29 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 16442 invoked from network); 21 Mar 2003 09:52:17 -0000 Received: from unknown (HELO molenda.com) (192.220.74.81) by sources.redhat.com with SMTP; 21 Mar 2003 09:52:17 -0000 Received: (qmail 64349 invoked by uid 19025); 21 Mar 2003 09:55:32 -0000 Date: Fri, 21 Mar 2003 09:53:00 -0000 From: Jason Molenda To: Bob Rossi Cc: gdb-patches@sources.redhat.com Subject: Re: Adding -file-list-exec-source-file command to GDB/MI Message-ID: <20030321015532.A54903@molenda.com> References: <20030320224454.GA14096@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030320224454.GA14096@white>; from bob_rossi@cox.net on Thu, Mar 20, 2003 at 05:44:54PM -0500 X-SW-Source: 2003-03/txt/msg00450.txt.bz2 Hello Bob, My approval isn't needed for these patches or anything, I'm just an interested observer making comments. On Thu, Mar 20, 2003 at 05:44:54PM -0500, Bob Rossi wrote: > This change essentially adds the command -file-list-exec-source-file to > the mi commands. I don't understand why this command is useful. A UI can get the filename of the currently-executing source file easily enough with "stack-list-frames 0 1". The pathname is returned as it was recorded in the debug info from the compiler - it might be an absolute path or it might be a relative path. If the path is relative, gdb will interpret that pathname based on the directory gdb was invoked--which presumably the UI did itself. Or it will be interpreted relative to any paths added with the "dir" (CLI) / "environment-directory" (MI) command, which the UI would have added as well. (or it can get the list of paths with the environment-directory command without any arguments) Why does this information have to be provided by gdb? Jason