From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117182 invoked by alias); 6 Sep 2018 21:14:30 -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 117166 invoked by uid 89); 6 Sep 2018 21:14:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:982 X-HELO: gateway23.websitewelcome.com Received: from gateway23.websitewelcome.com (HELO gateway23.websitewelcome.com) (192.185.49.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Sep 2018 21:14:28 +0000 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway23.websitewelcome.com (Postfix) with ESMTP id A9F49150DC for ; Thu, 6 Sep 2018 16:13:25 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id y1aUfddGObXuJy1abfxZYy; Thu, 06 Sep 2018 16:13:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FTLyZJVeWeot5KzRaK2IQ8XwRsJY1bWdJV5K0S9qCQU=; b=uOAA2LaiHMdy9S6B8dJu40aiRB 9CQLEspV9MkToZI+LNHKwKqvylrLhMmSAtP9iRgo1xsbd9GQELCeUnjbP5gBwpf2HYTSy+L6sGCiD wJdQYDClu2T22Ff3UWrcvoYhb; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:34550 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fy1aU-0013U4-7q; Thu, 06 Sep 2018 16:13:14 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFC 8/8] Style the "Reading symbols" message Date: Thu, 06 Sep 2018 21:14:00 -0000 Message-Id: <20180906211303.11029-9-tom@tromey.com> In-Reply-To: <20180906211303.11029-1-tom@tromey.com> References: <20180906211303.11029-1-tom@tromey.com> X-SW-Source: 2018-09/txt/msg00110.txt.bz2 The "Reading symbols" message does not use ui-out (perhaps it should?), so this styles it using the low-level API. --- gdb/symfile.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/symfile.c b/gdb/symfile.c index 20697d9dca2..999e3935622 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -58,6 +58,7 @@ #include "cli/cli-utils.h" #include "common/byte-vector.h" #include "selftest.h" +#include "cli/cli-style.h" #include #include @@ -1111,7 +1112,11 @@ symbol_file_add_with_addrs (bfd *abfd, const char *name, deprecated_pre_add_symbol_hook (name); else { - printf_unfiltered (_("Reading symbols from %s..."), name); + puts_unfiltered (_("Reading symbols from ")); + set_output_style (gdb_stdout, file_name_style.style ()); + puts_unfiltered (name); + set_output_style (gdb_stdout, ui_file_style ()); + puts_unfiltered ("..."); wrap_here (""); gdb_flush (gdb_stdout); } -- 2.13.6