public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: sami wagiaalla <swagiaal@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch 3/3 optional] Template Lookup
Date: Wed, 18 Aug 2010 22:15:00 -0000	[thread overview]
Message-ID: <m3hbira7oy.fsf@fleche.redhat.com> (raw)
In-Reply-To: <4C446F53.7000209@redhat.com> (sami wagiaalla's message of "Mon,	19 Jul 2010 11:29:23 -0400")

>>>>> "Sami" == sami wagiaalla <swagiaal@redhat.com> writes:

Sami> This patch improves the output provided by patch 2 in the series. It
Sami> makes the meta symbol created for templates aware of its instanced
Sami> within scope.

Sami> +	struct symbol_list_element* instance = symbol_get_template_instances (var);

Space before "*", not after.  There are a few of these.

Sami> +  new_instance->sym = instance;
Sami> +  new_instance->next = sym->ginfo.value.instances;
Sami> +  sym->ginfo.value.instances = new_instance;

You could save a little memory by making a "subclass" of symbol for just
these instances, and have the subclass include the link.

Sami> +extern struct symbol_list_element*
Sami> +symbol_get_template_instances (struct symbol* sym);

It seems like this could return a 'const struct symbol_list_element *'.
And perhaps accept a 'const struct symbol *'.  I didn't really examine
the other patches for const opportunities, but I think it would be
worthwhile to look at.

Tom

  reply	other threads:[~2010-08-18 22:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19 15:29 sami wagiaalla
2010-08-18 22:15 ` Tom Tromey [this message]
2010-08-30 14:59   ` sami wagiaalla
2010-09-23 18:43     ` [patch 3/4 " sami wagiaalla

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