From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7831 invoked by alias); 15 Oct 2004 02:36:56 -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 7823 invoked from network); 15 Oct 2004 02:36:55 -0000 Received: from unknown (HELO tisch.mail.mindspring.net) (207.69.200.157) by sourceware.org with SMTP; 15 Oct 2004 02:36:55 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by tisch.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1CIHxc-00011F-00; Thu, 14 Oct 2004 22:36:52 -0400 Received: from mindspring.com (localhost [127.0.0.1]) by berman.michael-chastain.com (Postfix) with SMTP id BC3A54B102; Thu, 14 Oct 2004 22:36:54 -0400 (EDT) Date: Fri, 15 Oct 2004 13:28:00 -0000 From: Michael Chastain To: eliz@gnu.org, bob@brasko.net Subject: Re: probing GDB for MI versions Cc: gdb@sources.redhat.com Message-ID: <416F37BF.nail3XL4INQH1@mindspring.com> References: <20041007145511.GA14573@white> <200410071614.MAA19648@smtp.ott.qnx.com> <20041007224230.GA15177@white> <01c4ad12$Blat.v2.2.2$1796ec80@zahav.net.il> <20041009002901.GB16824@white> <20041013003135.GA22087@white> <01c4b0df$Blat.v2.2.2$e933d3e0@zahav.net.il> <20041013121412.GA22696@white> <01c4b163$Blat.v2.2.2$7d934a60@zahav.net.il> <20041014153720.GA24199@white> <01c4b233$Blat.v2.2.2$873cc700@zahav.net.il> In-Reply-To: <01c4b233$Blat.v2.2.2$873cc700@zahav.net.il> User-Agent: nail 10.8 6/28/04 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-10/txt/msg00321.txt.bz2 gcc has many options with similar purposes: -print-file-name=LIBRARY Print the full absolute name of the library file LIBRARY that would be used when linking--and don't do anything else. With this option, GCC does not compile or link anything; it just prints the file name. -print-multi-directory Print the directory name corresponding to the multilib selected by any other switches present in the command line. [et cetera] -print-multi-lib Print the mapping from multilib directory names to compiler switches that enable them. [et cetera] -print-prog-name=PROGRAM Like -print-file-name, but searches for a program such as cpp. -print-libgcc-file-name [et cetera] -print-search-dirs [et cetera] -dumpmachine -dumpversion -dumpspecs [et cetera] This situation looks very similar. So if -print-XXX and --dumpYYY are working well for gcc, then "gdb -print-mi-versions" ought to be fine. Like Bob, I don't have a problem with invoking gdb twice. Just my two cents, Michael