public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] template names with arguments out of DW_AT_name
Date: Thu, 05 Aug 2010 19:41:00 -0000	[thread overview]
Message-ID: <m3y6ckvoe7.fsf@fleche.redhat.com> (raw)
In-Reply-To: <201007302017.41074.pedro@codesourcery.com> (Pedro Alves's	message of "Fri, 30 Jul 2010 20:17:40 +0100")

>>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:

Pedro> +/* Set during partial symbol reading, to prevent queueing of full
Pedro> +   symbols.  */
Pedro> +static int reading_partial_symbols;

Is there a particular reason for a new global?  If not, I would prefer a
field in dwarf2_per_objfile.  There is plenty of room there, and I think
it is a bit more understandable, plus friendlier for threading.

Pedro> +  /* If this is a template instantiation, we can not work out the
Pedro> +     template arguments from partial DIEs.  So, unfortunately, we have
Pedro> +     to go through the full DIEs.  At least any work we do building
Pedro> +     types here will be reused if full symbols are loaded later.  */

I wonder whether this invalidates the multi-threading patches.

I suspect it does not, but it is hard to be certain.  Those patches
relied on partial symbol reading using relatively few globals; full
symbol reading uses more, and it isn't totally clear to me whether this
code touches those or not.

This doesn't affect this patch, I'm just wondering aloud.

Pedro> +		      /* Specify decimal so that we do not depend on the radix.  */
Pedro> +		      get_formatted_print_options (&opts, 'd');

I think you probably want to set the 'raw' field here.

I don't think this will properly handle a DW_TAG_template_parameter that
points to some other symbol.  IIUC, this code will just print the
address of the symbol, but it should actually print "&symbol".

Tom

  reply	other threads:[~2010-08-05 19:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-30 19:18 Pedro Alves
2010-08-05 19:41 ` Tom Tromey [this message]
2010-08-11 21:56   ` Pedro Alves
2010-08-12 19:34     ` Tom Tromey
2010-08-12 19:58       ` Pedro Alves

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=m3y6ckvoe7.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).