From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27964 invoked by alias); 22 Jun 2012 11:32:31 -0000 Received: (qmail 27955 invoked by uid 22791); 22 Jun 2012 11:32:30 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Jun 2012 11:32:13 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5MBWBBp018666 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 22 Jun 2012 07:32:11 -0400 Received: from host2.jankratochvil.net (ovpn-116-33.ams2.redhat.com [10.36.116.33]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q5MBW7Nn031037 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 22 Jun 2012 07:32:10 -0400 Date: Fri, 22 Jun 2012 11:32:00 -0000 From: Jan Kratochvil To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: [patch] -iex and -ix: Execute them _after_ gdbinits Message-ID: <20120622113206.GA25961@host2.jankratochvil.net> References: <83txybdnue.fsf@gnu.org> <20120616201312.GA7000@host2.jankratochvil.net> <83sjdvdkns.fsf@gnu.org> <20120616213126.GA12840@host2.jankratochvil.net> <83r4teejkj.fsf@gnu.org> <20120617065014.GA16029@host2.jankratochvil.net> <20120620190124.GA21945@host2.jankratochvil.net> <83sjdpdbac.fsf@gnu.org> <20120622075113.GA9742@host2.jankratochvil.net> <838vffd6l3.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <838vffd6l3.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00687.txt.bz2 On Fri, 22 Jun 2012 11:44:08 +0200, Eli Zaretskii wrote: > A simple scenario where this could be useful is when either of these > two files does something conditioned on some variable's value. Then > setting that variable before these are loaded can control what loading > them does. This is a case explicitly depending on the feature A which was not present in gdb-7.4. There exist other possibilities how to achieve the same, such as '-ix /etc/gdbinit2' or /etc/gdbinit defining macro R and macro S and then using -iex R or -iex S. I do not consider this example as worth introducing new command. Thanks, Jan