From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88241 invoked by alias); 7 Feb 2019 18:58:06 -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 88162 invoked by uid 89); 7 Feb 2019 18:58:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=BAYES_00,KAM_STOCKGEN,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy= X-HELO: mail-wm1-f53.google.com Received: from mail-wm1-f53.google.com (HELO mail-wm1-f53.google.com) (209.85.128.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 07 Feb 2019 18:58:04 +0000 Received: by mail-wm1-f53.google.com with SMTP id r17so976523wmh.5 for ; Thu, 07 Feb 2019 10:58:03 -0800 (PST) Return-Path: Received: from ?IPv6:2001:8a0:f913:f700:4c97:6d52:2cea:997b? ([2001:8a0:f913:f700:4c97:6d52:2cea:997b]) by smtp.gmail.com with ESMTPSA id e9sm29424868wrc.56.2019.02.07.10.58.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Feb 2019 10:58:00 -0800 (PST) Subject: Re: [RFAv2 3/3] Make symtab.c better styled. To: Philippe Waroquiers , gdb-patches@sourceware.org References: <20190112222835.16932-1-philippe.waroquiers@skynet.be> <20190112222835.16932-4-philippe.waroquiers@skynet.be> From: Pedro Alves Message-ID: <393f2825-8cc8-b71a-4e61-1edfd944cb84@redhat.com> Date: Thu, 07 Feb 2019 18:58:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190112222835.16932-4-philippe.waroquiers@skynet.be> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2019-02/txt/msg00074.txt.bz2 On 01/12/2019 10:28 PM, Philippe Waroquiers wrote: > @@ -4667,8 +4685,15 @@ print_msymbol_info (struct bound_minimal_symbol msymbol) > else > tmp = hex_string_custom (BMSYMBOL_VALUE_ADDRESS (msymbol), > 16); > - printf_filtered ("%s %s\n", > - tmp, MSYMBOL_PRINT_NAME (msymbol.minsym)); > + fputs_styled (tmp, address_style.style (), gdb_stdout); > + fputs_filtered (" ", gdb_stdout); > + if (msymbol_type_text_p (msymbol)) > + fputs_styled (MSYMBOL_PRINT_NAME (msymbol.minsym), > + function_name_style.style (), > + gdb_stdout); > + else > + fputs_filtered (MSYMBOL_PRINT_NAME (msymbol.minsym), gdb_stdout); > + fputs_filtered ("\n", gdb_stdout); Should this use the existing msymbol_is_function instead? Thanks, Pedro Alves