From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92619 invoked by alias); 27 Jun 2018 18:39:03 -0000 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 Received: (qmail 92605 invoked by uid 89); 27 Jun 2018 18:39:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1160, printers, 20180615, 2018-06-15 X-HELO: sessmg22.ericsson.net Received: from sessmg22.ericsson.net (HELO sessmg22.ericsson.net) (193.180.251.58) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 Jun 2018 18:39:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1530124738; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rDsiR4iOuj+LZqM2ttGtBDiWwrdM3HQUTRQSEtGMeos=; b=bgBjQ4vVHoj+1rQcIW6pR5OhyCMLGHWi54uKs1lsFCGZWPiRdtmKm0/SBWASuSno GucFaCNNe6ngVxLoh30pZd2o5K4DYZpy8SXqqCu6nZeQNMwsltT+/xxm8iemn7l0 iwZ87qlTiRtRcTdl+E5eI6r9zjYHzrFv9XEc7UVk6uc=; Received: from ESESBMB505.ericsson.se (Unknown_Domain [153.88.183.118]) by sessmg22.ericsson.net (Symantec Mail Security) with SMTP id 0A.D4.31169.2C9D33B5; Wed, 27 Jun 2018 20:38:58 +0200 (CEST) Received: from ESESBMR504.ericsson.se (153.88.183.139) by ESESBMB505.ericsson.se (153.88.183.118) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 27 Jun 2018 20:38:58 +0200 Received: from ESESBMB502.ericsson.se (153.88.183.169) by ESESBMR504.ericsson.se (153.88.183.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 27 Jun 2018 20:38:58 +0200 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB502.ericsson.se (153.88.183.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Wed, 27 Jun 2018 20:38:57 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9ZdriHHCB1hwaBS3NnC5lJAIKu7YNUXBzcM7mAYLwWM=; b=Z8wpBLw74rcIV+A9vADjTe8PLFxzEwc9e0BLcZCuZE/EOa7E/aZpM4oCVTkEbCZU0RnMo3zY5pQR8kOWh+KYqThzkXWmSgdtRPyW3aKh0Qyl6R2qwCDIDK+zerKGtSq+KQ0B03A8lacaA4y04mzdPKkvo21Luw+XSqeETHMvsJs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=simon.marchi@ericsson.com; Received: from [100.94.229.156] (129.192.64.65) by DM6PR15MB2396.namprd15.prod.outlook.com (2603:10b6:5:8d::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.23; Wed, 27 Jun 2018 18:38:54 +0000 Subject: Re: [PATCH 1/3] Copy gdb-gdb.py to build dir To: References: <1529098041-2212-1-git-send-email-simon.marchi@ericsson.com> From: Simon Marchi Message-ID: <193ee23e-e72d-9a76-9c1d-865b7afaa527@ericsson.com> Date: Wed, 27 Jun 2018 18:39:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1529098041-2212-1-git-send-email-simon.marchi@ericsson.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-Path: simon.marchi@ericsson.com Received-SPF: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts) X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00661.txt.bz2 On 2018-06-15 05:27 PM, Simon Marchi wrote: > I have thought for a long time how nice it would be to have cool pretty > printers for GDB's internal types. Well, turns out there are few > already in gdb-gdb.py! Unfortunately, if you build GDB outside of the > source directory, that file never gets loaded. top-gdb will look for a > file called > > ../path/to/build/gdb/gdb-gdb.py > > but that file is in the source directory at > > ../path/to/src/gdb/gdb-gdb.py > > This patch makes it so we copy it to the build directory, just like we > do for gdb-gdb.gdb. With this, I can at least see the file getting > automatically loaded: > > (top-gdb) info pretty-printer > global pretty-printers: > builtin > mpx_bound128 > objfile /home/emaisin/build/binutils-gdb/gdb/gdb pretty-printers: > type_lookup_function > > I noticed that running "make" didn't re-generate gdb-gdb.py from > gdb-gdb.py.in. That's because it's copied when running the configure > script and that's it. I added a rule in the Makefile for that (and for > gdb-gdb.gdb too) and added them as a dependency to the "all" target. I pushed these. Simon