Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
Subject: Re: [RFA 0/9] Radically simplify the complaint system
Date: Wed, 23 May 2018 14:49:00 -0000	[thread overview]
Message-ID: <190d88e2-35a5-9dc2-8b28-4a8c37e0617a@redhat.com> (raw)
In-Reply-To: <20180522050704.10845-1-tom@tromey.com>

On 05/22/2018 06:06 AM, Tom Tromey wrote:
> I must confess, I've long disliked the complaint system.  It got in
> the way a little bit, ages ago, when I tried to multi-thread the
> psymtab reader.  And, it got in the way a bit more during one of my
> attempts to format the "Reading symbols" output more nicely (spoiler:
> I have another approach to this in the works, but I took this detour
> first).  Aside from these things, the code also seemed unusually
> complex for the task it performed.
> 
> This series radically simplifies the complaint system.  It removes
> most of the code -- which, I think, has never really been used.

Awesome!  I started doing something similar a while ago after adding
the complaint wrapper macro, but never really finished it off:

  https://github.com/palves/gdb/tree/palves/complaints

Probably nothing worth looking over.

This looks good to me, but I have one question:

Can you give an example case of when do we still need or want
the ISOLATED_MESSAGE vs SHORT_FIRST_MESSAGE distinction?
I removed it from my version, but I don't recall whether I
concluded the distinction made no difference, or whether
I still wanted to double check.  Off hand, since we're
admitting that complaints are only for debug info reading,
I'd think the distinction doesn't make much sense.  Unless
we're really not admitting that?  /me confused, I guess.

> Tested by the buildbot.  I also locally tested complaints.exp with
> each patch in the series.
Note: git am showed:

Applying: Remove symfile_complaints
.git/rebase-apply/patch:247: trailing whitespace.
vcomplaint (const char *file, 
.git/rebase-apply/patch:253: trailing whitespace.
  struct complain *complaint = find_complaint (&symfile_complaint_book, file, 
.git/rebase-apply/patch:2497: trailing whitespace.
              complaint (_("Bad method name '%s'"), 
warning: 3 lines add whitespace errors.

Thanks,
Pedro Alves


  parent reply	other threads:[~2018-05-23 13:35 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-22  5:09 Tom Tromey
2018-05-22  5:07 ` [RFA 2/9] Remove elements from complaint_series Tom Tromey
2018-05-22  5:07 ` [RFA 9/9] Remove struct complaints Tom Tromey
2018-05-22  5:08 ` [RFA 6/9] Remove vcomplaint Tom Tromey
2018-05-22  5:08 ` [RFA 5/9] Remove struct explanation Tom Tromey
2018-05-22  5:09 ` [RFA 8/9] Remove struct complain Tom Tromey
2018-05-22  5:09 ` [RFA 4/9] Remove symfile_complaints Tom Tromey
2018-05-22  5:09 ` [RFA 1/9] Remove internal_complaint Tom Tromey
2018-05-22  5:50 ` [RFA 3/9] Remove "noisy" parameter from clear_complaints Tom Tromey
2018-05-22  7:01 ` [RFA 7/9] Remove file and line from struct complain Tom Tromey
2018-05-23 14:49 ` Pedro Alves [this message]
2018-05-23 15:08   ` [RFA 0/9] Radically simplify the complaint system Tom Tromey
2018-05-23 17:44     ` Pedro Alves
2018-05-28 10:41       ` Tom Tromey
2018-05-28 10:41         ` Tom Tromey
2018-05-28 19:37         ` Pedro Alves
2018-05-28 22:19           ` Tom Tromey
2018-05-29 16:05             ` Pedro Alves
2018-06-04 20:25 ` Possible regression on gdb.gdb/complaints.exp (was: Re: [RFA 0/9] Radically simplify the complaint system) Sergio Durigan Junior
2018-06-04 21:38   ` Possible regression on gdb.gdb/complaints.exp Tom Tromey
2018-06-04 23:29     ` Sergio Durigan Junior

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=190d88e2-35a5-9dc2-8b28-4a8c37e0617a@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.com \
    /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