From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29469 invoked by alias); 2 Oct 2009 19:56:41 -0000 Received: (qmail 29457 invoked by uid 22791); 2 Oct 2009 19:56:40 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Oct 2009 19:56:36 +0000 Received: (qmail 6420 invoked from network); 2 Oct 2009 19:56:30 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 2 Oct 2009 19:56:30 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Can we make gdbinit.in set the data-directory to @srcdir@? Date: Fri, 02 Oct 2009 19:56:00 -0000 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910022056.30734.pedro@codesourcery.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/msg00066.txt.bz2 While working on "catch syscall" issues, I found it weird that a non-installed gdb ran from the build dir didn't pick up the syscall names from the xml file found in its own sources. I think it should, always, even when at some point distros start including data in the default system data dir, which is meant for the system gdb, not for the gdb one is hacking on. Would anyone object to this? -- Pedro Alves 2009-10-02 Pedro Alves * gdbinit.in: set data-directory to @srcdir@. --- gdb/gdbinit.in | 2 ++ 1 file changed, 2 insertions(+) Index: src/gdb/gdbinit.in =================================================================== --- src.orig/gdb/gdbinit.in 2009-10-01 15:15:16.000000000 +0100 +++ src/gdb/gdbinit.in 2009-10-02 20:45:52.000000000 +0100 @@ -16,6 +16,8 @@ dir @srcdir@ dir . set prompt (top-gdb) +set data-directory @srcdir@ + define pdie if $argc == 1 call dump_die ($arg0, 1)