Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFC/RFA] Set current language when dumping symtab
Date: Mon, 30 May 2005 20:06:00 -0000	[thread overview]
Message-ID: <20050530195458.GB31201@nevyn.them.org> (raw)
In-Reply-To: <20050530195338.GO18754@adacore.com>

On Tue, May 31, 2005 at 05:53:39AM +1000, Joel Brobecker wrote:
> +static void
> +dump_symtab (struct objfile *objfile, struct symtab *symtab,
> +	     struct ui_file *outfile)
> +{
> +  enum language saved_lang;
> +  volatile struct gdb_exception except;
> +
> +  /* Set the current language to the language of the symtab we're dumping
> +     because certain routines used during dump_symtab() use the current
> +     language to print an image of the symbol.  We'll restore it later.  */
> +  saved_lang = set_language (symtab->language);
> +
> +  dump_symtab_1 (objfile, symtab, outfile);
> +
> +  set_language (saved_lang);
> +}
> +

Except now except is unused, and there's no reason not to fold this
into dump_symtab.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


  reply	other threads:[~2005-05-30 19:55 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
2005-05-30 19:55         ` Joel Brobecker
2005-05-30 20:06           ` Daniel Jacobowitz [this message]
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=20050530195458.GB31201@nevyn.them.org \
    --to=drow@false.org \
    --cc=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