From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101026 invoked by alias); 28 Oct 2018 14:46:29 -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 101012 invoked by uid 89); 28 Oct 2018 14:46:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:742, ensures, HContent-Transfer-Encoding:8bit X-HELO: mailsec110.isp.belgacom.be Received: from mailsec110.isp.belgacom.be (HELO mailsec110.isp.belgacom.be) (195.238.20.106) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 28 Oct 2018 14:46:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1540737985; x=1572273985; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=ukzzagZ67PIEIMhhAZTvgKG7Q9T6qUUnJ/H5wWhf+T0=; b=ATRPB+D6IysUQvewH+smu3kOvaZHB4CIOX+F0NWMPte7iSRwVRtPYQj/ 5fVf8+WMFXhsrjlNSatFkkqUOtWbSA==; Received: from 110.212-243-81.adsl-dyn.isp.belgacom.be (HELO md.home) ([81.243.212.110]) by relay.skynet.be with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 28 Oct 2018 15:46:23 +0100 From: Philippe Waroquiers To: gdb-patches@sourceware.org Subject: [RFA 0/5] Use language mode in 'info [functions|variables|types]|rbreak' Date: Sun, 28 Oct 2018 14:46:00 -0000 Message-Id: <20181028144614.14149-1-philippe.waroquiers@skynet.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-10/txt/msg00666.txt.bz2 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.