Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFC/RFA] Set current language when dumping symtab
Date: Mon, 30 May 2005 15:59:00 -0000	[thread overview]
Message-ID: <20050530054538.GM18754@adacore.com> (raw)
In-Reply-To: <20050529025401.GA14380@nevyn.them.org>

> > #define TRY_CATCH(EXCEPTION,MASK) \
> >      { \
> >        EXCEPTIONS_SIGJMP_BUF *buf = \
> >          exceptions_state_mc_init (uiout, &(EXCEPTION), (MASK)); \
> >        EXCEPTIONS_SIGSETJMP (*buf); \
> >      } \
> >      while (exceptions_state_mc_action_iter ()) \
> >        while (exceptions_state_mc_action_iter_1 ())
> > 
> > There is a dependency on "uiout". Perhaps it would be better to include
> > that file from exceptions.h, rather than requiring all clients to include
> > it themselves? I could send a separate RFA for that.
> 
> Yes please.  I figured it was something like that, went looking at the
> definition, and my eyes skipped right over it.

Sure. Patch sent, although I can provide the URL yet, as sources.redhat.com
is unfortunately refusing connections on port 25.  Will send the URL as
a followup message as soon as the problem is fixed.

> > > Also, I am not convinced that the new TRY_CATCH is necessary.  The
> > > only bit likely to throw is print_symbol, which is already wrapped in
> > > catch_errors.
> > 
> > That's true, and I'd be happy to remove it. But I thought that it might
> > be safer to use it anyway, so that any change underneath that might cause
> > an exception to be thrown does not affect this code. This is a hard
> > guaranty that the language will never be changed as a side-effect of
> > this command.

Okidoke, understood. New patch attached.

2005-05-30  Joel Brobecker  <brobecker@adacore.com>

        * symmisc.c (dump_symtab_1): Renamed from dump_symtab.
        (dump_symtab): New function.

Tested on x86-linux.

Thanks,
-- 
Joel


  reply	other threads:[~2005-05-30 15:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-04  0:20 Joel Brobecker
2005-05-29  0:09 ` Daniel Jacobowitz
2005-05-29  2:54   ` Joel Brobecker
2005-05-29  2:57     ` Daniel Jacobowitz
2005-05-30 15:59       ` Joel Brobecker [this message]
2005-05-30 19:55         ` Joel Brobecker
2005-05-30 20:06           ` Daniel Jacobowitz
2005-06-01  1:29             ` Joel Brobecker
2005-06-01  2:00               ` Daniel Jacobowitz
2005-06-03  0:10                 ` Joel Brobecker
2005-06-03 19:14                   ` Daniel Jacobowitz
2005-06-03 23:27                     ` Joel Brobecker
2005-06-02 16:54         ` Joel Brobecker

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=20050530054538.GM18754@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sources.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