From patchwork Sat Jan 19 12:33:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Waroquiers X-Patchwork-Id: 31125 Received: (qmail 128075 invoked by alias); 19 Jan 2019 12:33:29 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 127933 invoked by uid 89); 19 Jan 2019 12:33:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=gdbarch, HContent-Transfer-Encoding:8bit X-HELO: mailsec102.isp.belgacom.be Received: from mailsec102.isp.belgacom.be (HELO mailsec102.isp.belgacom.be) (195.238.20.98) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 19 Jan 2019 12:33:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1547901207; x=1579437207; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=s2yHZb59JHgkOe0dKZ3nx4/OXERODp2haX1TA7JmOeU=; b=rDV3hdPa6oG26rQsby+lccwOVLbgxh8Pkp724hekDXERrz27cL9Cn8W0 mHbmfSExX8ZT8mvD+kzy2pwWPg2dWg==; Received: from 184.205-67-87.adsl-dyn.isp.belgacom.be (HELO md.home) ([87.67.205.184]) by relay.skynet.be with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 19 Jan 2019 13:33:21 +0100 From: Philippe Waroquiers To: gdb-patches@sourceware.org Cc: Philippe Waroquiers Subject: [RFAv3 2/3] Use address style to print addresses in breakpoint information. Date: Sat, 19 Jan 2019 13:33:14 +0100 Message-Id: <20190119123315.5758-3-philippe.waroquiers@skynet.be> In-Reply-To: <20190119123315.5758-1-philippe.waroquiers@skynet.be> References: <20190119123315.5758-1-philippe.waroquiers@skynet.be> MIME-Version: 1.0 X-IsSubscribed: yes gdb/ChangeLog 2019-01-19 Philippe Waroquiers * breakpoint.c (describe_other_breakpoints): Use address style to print addresses. (say_where): Likewise. --- gdb/breakpoint.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 3166fa0129..05a017d6ea 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -6701,7 +6701,7 @@ describe_other_breakpoints (struct gdbarch *gdbarch, : ((others == 1) ? " and" : "")); } printf_filtered (_("also set at pc ")); - fputs_filtered (paddress (gdbarch, pc), gdb_stdout); + fputs_styled (paddress (gdbarch, pc), address_style.style (), gdb_stdout); printf_filtered (".\n"); } } @@ -12183,8 +12183,9 @@ say_where (struct breakpoint *b) if (opts.addressprint || b->loc->symtab == NULL) { printf_filtered (" at "); - fputs_filtered (paddress (b->loc->gdbarch, b->loc->address), - gdb_stdout); + fputs_styled (paddress (b->loc->gdbarch, b->loc->address), + address_style.style (), + gdb_stdout); } if (b->loc->symtab != NULL) {