public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Philippe Waroquiers <philippe.waroquiers@skynet.be>
To: Simon Marchi <simark@simark.ca>, gdb-patches@sourceware.org
Subject: Re: [RFA] Ensure GDB warnings are styled.
Date: Fri, 03 Jan 2020 20:40:00 -0000	[thread overview]
Message-ID: <681b89f6f353f689999a98a7dc6e6337d22bf044.camel@skynet.be> (raw)
In-Reply-To: <5d79be1d-8994-0a19-7ff6-68110f67f27b@simark.ca>

Thanks for the review, pushed.

Philippe


On Tue, 2019-12-31 at 13:13 -0500, Simon Marchi wrote:
> On 2019-12-15 12:10 p.m., Philippe Waroquiers wrote:
> > While handling the comments of Tom related to
> >   [RFC] Have an option to tell GDB to detect and possibly handle mismatched exec-files.
> >   https://sourceware.org/ml/gdb-patches/2019-12/msg00621.html
> > I saw that GDB warnings are produced ignoring the given styles.
> > 
> > This patch:
> >   * ensures that style markups are properly handled by "warning".
> >   * changes 'set/show data-directory' so that file style is used
> >     in warnings and in 'show message'
> >   * changes all other messages in top.c to use file style when appropriate.
> >   * Uses the above data-directory changes in gdb.base/style.exp
> > 
> > 2019-12-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
> > 
> > 	* ui-file.c (stdio_file::can_emit_style_escape)
> > 	(tee_file::can_emit_style_escape): Ensure style is used also on
> > 	gdb_stderr when gdb_stderr is a tty supporting styling, similarly
> > 	to gdb_stdout.
> > 	* main.c (set_gdb_data_directory): Use file style to output the
> > 	warning that the given pathname is not a directory.
> > 	* top.c (show_history_filename, gdb_safe_append_history)
> > 	(show_gdb_datadir): Use file style.
> > 
> > 2019-12-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
> > 
> > 	* gdb.base/style.exp: Test that warnings are styled.
> 
> Thanks, that LGTM.
> 
> Simon
> 

      reply	other threads:[~2020-01-03 20:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-15 17:11 Philippe Waroquiers
2019-12-29 11:36 ` PING. " Philippe Waroquiers
2019-12-31 18:13 ` Simon Marchi
2020-01-03 20:40   ` Philippe Waroquiers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=681b89f6f353f689999a98a7dc6e6337d22bf044.camel@skynet.be \
    --to=philippe.waroquiers@skynet.be \
    --cc=gdb-patches@sourceware.org \
    --cc=simark@simark.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).