From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9508 invoked by alias); 6 Oct 2009 04:44:22 -0000 Received: (qmail 9500 invoked by uid 22791); 6 Oct 2009 04:44:21 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from e24smtp03.br.ibm.com (HELO e24smtp03.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Oct 2009 04:44:16 +0000 Received: from d24relay01.br.ibm.com (d24relay01.br.ibm.com [9.8.31.16]) by e24smtp03.br.ibm.com (8.14.3/8.13.1) with ESMTP id n964dA3V010682 for ; Tue, 6 Oct 2009 01:39:10 -0300 Received: from d24av04.br.ibm.com (d24av04.br.ibm.com [9.18.232.43]) by d24relay01.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n964iDT03596324 for ; Tue, 6 Oct 2009 01:44:13 -0300 Received: from d24av04.br.ibm.com (loopback [127.0.0.1]) by d24av04.br.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id n964iCLv012777 for ; Tue, 6 Oct 2009 01:44:13 -0300 Received: from miki.localnet ([9.8.13.236]) by d24av04.br.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id n964iARD012753 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 6 Oct 2009 01:44:12 -0300 From: =?iso-8859-1?q?S=E9rgio_Durigan_J=FAnior?= To: gdb-patches@sourceware.org Subject: Re: Can we make gdbinit.in set the data-directory to @srcdir@? Date: Tue, 06 Oct 2009 04:44:00 -0000 User-Agent: KMail/1.12.1 (Linux/2.6.30.4; KDE/4.3.1; i686; ; ) Cc: Pedro Alves , Joel Brobecker References: <200910022056.30734.pedro@codesourcery.com> <200910041453.59509.pedro@codesourcery.com> <200910051441.47781.pedro@codesourcery.com> In-Reply-To: <200910051441.47781.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200910060144.08110.sergiodj@linux.vnet.ibm.com> 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: 2009-10/txt/msg00116.txt.bz2 On Monday 05 October 2009, Pedro Alves wrote: > On Sunday 04 October 2009 14:53:58, Pedro Alves wrote: > > On Friday 02 October 2009 22:05:06, Joel wrote: > > > > 2009-10-02 Pedro Alves > > > > > > > > * gdbinit.in: set data-directory to @srcdir@. >=20 > On second thought, this was a bad idea. .gdbinit is for the > top (maybe system) gdb, not for the just built, non-installed > gdb. Sorry for the confusion. I'll revert. Also, there's one more thing I'd like to point out. The catch syscall=20 testcase partially relies in the fact that GDB will not have the data- directory automatically set on startup. This is because, among other thing= s,=20 it has to test how GDB behaves when it doesn't have access to the XML files= =20 for the architecture (or even when those files don't exist at all), and thi= s=20 scenario is achieved when data-directory is empty. Anyway, if we decide to make this parameter be automatically set upon GDB's= =20 initialization in the build dir, we have to make sure that this doesn't bre= ak=20 the testcase (I didn't test this specific case yet, but IIRC it's likely th= at=20 it will break). If it does, we may need to unset it on some situations ins= ide=20 the testcase in order to make it work properly. Just my two cents. Regards, --=20 S=E9rgio Durigan J=FAnior Linux on Power Toolchain - Software Engineer Linux Technology Center - LTC IBM Brazil