Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@ges.redhat.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PING] ui_out related patches
Date: Thu, 12 Sep 2002 15:16:00 -0000	[thread overview]
Message-ID: <3D811239.3080302@ges.redhat.com> (raw)
In-Reply-To: <1020907001738.ZM27333@localhost.localdomain>

> Could someone please take a look at the following patches:
> 
>     http://sources.redhat.com/ml/gdb-patches/2002-07/msg00514.html
>     http://sources.redhat.com/ml/gdb-patches/2002-07/msg00517.html
> 
> They are both related to internal errors that occur when gdb generates
> a long list and the user aborts in the midst of displaying the list.
> 
> IMO, this is something that should be fixed prior to the next release.

(I accidently deleted the other thread discussing this.)

Anyway, 1.3c worth ...

Way back when MI was being started one of the ``lofty goals'' was to 
eliminate the exception code (i.e., cleanups, everything would use 
return).   I think reality has set in on this front and we're not going 
to manage it --- instead we're going to be living with cleanups for a 
long time.

Anyway, I think the code should be made more robust.  That is, given:

ui_out_cleanup_list_begin()
   ui_out_tupple_begin()
     ui_out_list_begin()
     ui_out_list_end()
   ui_out_tupple_end()
do_cleanups (list_end_cleanup);

the cleanup should know how to close off everything back to the 
specified cleanup level.

Other approaches would be:

cleanup = make_cleanup (null_cleanup, NULL);
ui_out_cleanup_list_begin()
   ui_out_cleanup_tupple_begin()
     ui_out_cleanup_list_begin()
do_cleanups (list_end_cleanup);

which happens to ``work'' (cleanups are a filo).  And even:

ui_out_list_begin()
   ui_out_tupple_begin()
     ui_out_list_begin()
     ui_out_list_end()
   ui_out_tupple_end()
ui_out_list_end()

where ui-out internally and implicitly set up and executed cleanups.

Andrew



      reply	other threads:[~2002-09-12 22:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-06 17:17 Kevin Buettner
2002-09-12 15:16 ` Andrew Cagney [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=3D811239.3080302@ges.redhat.com \
    --to=ac131313@ges.redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@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