From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52371 invoked by alias); 13 Nov 2018 19:15:50 -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 52296 invoked by uid 89); 13 Nov 2018 19:15:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mailsec104.isp.belgacom.be Received: from mailsec104.isp.belgacom.be (HELO mailsec104.isp.belgacom.be) (195.238.20.100) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 Nov 2018 19:15:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1542136540; x=1573672540; h=message-id:subject:from:to:date:in-reply-to:references: mime-version:content-transfer-encoding; bh=T3ltcGyBTtvR4m8zJ6Ad4fZCdmftldMJ/GxNS673DJo=; b=Pe6itUs0I65Oqx4MhILfl4gUheSbaAKxufzu6dNa4efLV2nloFpwM0Aa XGRIwUeTqn3iP15QP5/JsYT3cRu8Aw==; Received: from 110.212-243-81.adsl-dyn.isp.belgacom.be (HELO md) ([81.243.212.110]) by relay.skynet.be with ESMTP/TLS/AES256-GCM-SHA384; 13 Nov 2018 20:15:38 +0100 Message-ID: <1542136537.1531.6.camel@skynet.be> Subject: PING Re: [RFA 0/5] Use language mode in 'info [functions|variables|types]|rbreak' From: Philippe Waroquiers To: gdb-patches@sourceware.org Date: Tue, 13 Nov 2018 19:15:00 -0000 In-Reply-To: <20181028144614.14149-1-philippe.waroquiers@skynet.be> References: <20181028144614.14149-1-philippe.waroquiers@skynet.be> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-11/txt/msg00221.txt.bz2 thanks On Sun, 2018-10-28 at 15:46 +0100, Philippe Waroquiers wrote: > The commands 'info [functions|variables|types]|rbreak' work > on the global program, not only in the current frame. > So in in mixed languages program, these commands examine and print > entities defined in different languages. > > Now, GDB uses the current language to print all the results of > these commands, which is somewhat surprising. > > For example, when the current frame is in Ada, > info function gethostbyname gives: > File ../nss/getXXbyYY.c: > 87: function gethostbyname (a1: access char) return access hostent; > > This patch series ensures that these commands respect the 'set language auto' > setup, to print the results in the language used to define the printed > entities. > >