Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Marc Khouzam <marc.khouzam@ericsson.com>
Cc: Yao Qi <yao@codesourcery.com>,
	       "gdb-patches\@sourceware.org"	<gdb-patches@sourceware.org>
Subject: Re: [MI][patch v2] -break-list to specify "thread-group"
Date: Fri, 28 Sep 2012 19:23:00 -0000	[thread overview]
Message-ID: <87vceyrlyg.fsf@fleche.redhat.com> (raw)
In-Reply-To: <F7CE05678329534C957159168FA70DEC5E11404FE6@EUSAACMS0703.eamcs.ericsson.se>	(Marc Khouzam's message of "Wed, 26 Sep 2012 06:03:44 -0400")

>>>>> "Marc" == Marc Khouzam <marc.khouzam@ericsson.com> writes:

Marc> I had forgotten to update the tests to take into consideration the
Marc> new parameter.  Those tests use -break-list in multiple places.
Marc> The new patch below does update the testsuite.
Marc> Only one new regression happens:

Marc> FAIL: gdb.mi/mi-nsmoribund.exp: thread specific breakpoint at thread_function

Marc> This was a latent problem where the unexpected 'thread' field was
Marc> being sucked into a '.*' pattern, which hid the error.  Because
Marc> the problem is in lib/mi-support.exp it is not as simple to fix.
Marc> Since the problem is not caused by my patch, I suggest not to fix
Marc> it right away.

We try not to let any regressions in.
So I think it does need to be fixed before this patch can go in.

Marc> Finally, one should note that this extra 'thread-group' field will now
Marc> appear in multiple command outputs and notifications.  Things such as
Marc> '-break-list', '-break-insert', '-break-info', '=breakpoint-modified'.
Marc> I believe that this all makes sense since a breakpoint is associated with
Marc> an inferior and the frontend may want to know that.

Totally fine, IMO.

Marc> +  /* Go through list in reverse order to print inferiors ids in
Marc> +     increasing order. */
Marc> +  for (index = len - 1; index >= 0; index--)

It isn't clear to me that it is reliable to assume that the inferior
list is sorted.

However, this shouldn't really matter for clients, either.

Marc> +       {
Marc> +         char mi_group[10];
Marc> +         sprintf (mi_group, "i%d", inf_num[index]);

Blank line between declarations and code.

Marc> +      int inf_num[number_of_inferiors ()];

I think you'd have to use alloca here -- but it is better to use a VEC
anyway.

Tom


  reply	other threads:[~2012-09-28 19:23 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-21 10:01 [MI][patch] " Marc Khouzam
2012-09-21 10:45 ` Marc Khouzam
2012-09-21 14:47   ` [MI][patch v2] " Marc Khouzam
2012-09-22 13:00     ` Yao Qi
2012-09-26 10:05       ` Marc Khouzam
2012-09-28 19:23         ` Tom Tromey [this message]
2012-10-01 16:10           ` Marc Khouzam
2012-10-01 16:17             ` Eli Zaretskii
2012-10-15 10:39             ` Marc Khouzam
2012-10-24 18:43               ` Marc Khouzam
2012-11-27 19:56                 ` Marc Khouzam
2012-11-28  6:07                   ` Abid, Hafiz
2012-11-30 18:35                     ` Tom Tromey
2012-09-28 19:21       ` Tom Tromey
2012-12-07 15:37       ` Pedro Alves
2012-12-07 15:44         ` Pedro Alves
2013-01-16 16:58           ` Marc Khouzam
2013-01-21 18:54             ` Pedro Alves
2013-01-22  0:09               ` Marc Khouzam
2012-09-28 19:10     ` Tom Tromey
2012-09-28 19:18     ` Tom Tromey
2012-09-21 18:12 ` [MI][patch] " André Pönitz
2012-09-21 18:54   ` Marc Khouzam

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=87vceyrlyg.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=marc.khouzam@ericsson.com \
    --cc=yao@codesourcery.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