Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Elena Zannoni <ezannoni@redhat.com>
To: jjohnstn@redhat.com, Keith Seitz <keiths@redhat.com>
Cc: "J. Johnston" <jjohnstn@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: Patch for gdb/mi problem 672
Date: Mon, 30 Sep 2002 14:13:00 -0000	[thread overview]
Message-ID: <15768.48370.999618.771334@localhost.redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0209300936040.1514-100000@valrhona.uglyboxes.com>

Keith Seitz writes:
 > Hi,
 > 
 > Although I know that varobj shouldn't longjmp in case of errors, I don't 
 > think that this is going to be a safe assumption. I would recommend that 
 > you refrain from using ui_out_*_begin and ui_out_*_end, and instead use 
 > make_cleanup_ui_out_*_begin_end and do_cleanups, which will make sure that 
 > the UIOUT builder is properly reset in case of errors. (See, for example, 
 > the cleanup that I did in mi_cmd_data_list_registers.)

Yes, right. I keep forgetting about this myself.

Jeff, the cleanups are done in case of error (i.e. longjump) out of
this function. If not, the nesting and depth of the lists would be
messed up for the next command that uses them.

Other than such change, approved.
When you commit, repost the patch that actually went in.

For the testsuite: mi0 is no more. These modified tests should go in
as mi2-var-child.exp, etc, leaving the mi-var... unchanged. Is this
the intent? Andrew?

thanks
Elena


 > 
 > On Fri, 27 Sep 2002, J. Johnston wrote:
 > 
 > > @@ -419,10 +419,10 @@
 > >    if ((*name == '*') && (*(name + 1) == '\0'))
 > >      {
 > >        nv = varobj_list (&rootlist);
 > > -      ui_out_tuple_begin (uiout, "changelist");
 > > +      ui_out_list_begin (uiout, "changelist");
 > >        if (nv <= 0)
 > >  	{
 > > -	  ui_out_tuple_end (uiout);
 > > +	  ui_out_list_end (uiout);
 > >  	  return MI_CMD_DONE;
 > >  	}
 > >        cr = rootlist;
 > 
 > [Andrew has already addressed the MI0 thing...]
 > 
 > Other than that, I would recommend that it be approved (for whatever 
 > that's worth).
 > 
 > Keith
 > 


  reply	other threads:[~2002-09-30 21:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-27 15:27 J. Johnston
2002-09-30 13:11 ` Keith Seitz
2002-09-30 14:13   ` Elena Zannoni [this message]
2002-09-30 18:07     ` Andrew Cagney
2002-10-02 10:49   ` J. Johnston
2002-10-02 15:54     ` Andrew Cagney
2002-10-02 15:55     ` Andrew Cagney

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=15768.48370.999618.771334@localhost.redhat.com \
    --to=ezannoni@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jjohnstn@redhat.com \
    --cc=keiths@redhat.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