From: David Carlton <carlton@kealia.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [rfa] generate symbols associated to namespaces
Date: Tue, 05 Aug 2003 18:06:00 -0000 [thread overview]
Message-ID: <yf2vftcvv17.fsf@hawaii.kealia.com> (raw)
In-Reply-To: <20030805175429.GA29704@nevyn.them.org> (Daniel Jacobowitz's message of "Tue, 5 Aug 2003 13:54:29 -0400")
On Tue, 5 Aug 2003 13:54:29 -0400, Daniel Jacobowitz <drow@mvista.com> said:
> On Fri, Jun 27, 2003 at 02:58:50PM -0700, David Carlton wrote:
>> + /* Allocate empty GLOBAL_BLOCK and STATIC_BLOCK. */
>> +
>> + bl = allocate_block (&objfile->symbol_obstack);
>> + BLOCK_DICT (bl) = dict_create_linear (&objfile->symbol_obstack,
>> + NULL);
>> + BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK) = bl;
>> + bl = allocate_block (&objfile->symbol_obstack);
>> + BLOCK_DICT (bl) = dict_create_linear (&objfile->symbol_obstack,
>> + NULL);
>> + BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK) = bl;
>> +
>> + /* Allocate the possible namespace block; we put it where the first
>> + local block will live, though I don't think there's any need to
>> + pretend that it's actually a local block (e.g. by setting
>> + BLOCK_SUPERBLOCK appropriately). */
>> +
>> + bl = allocate_block (&objfile->symbol_obstack);
>> + BLOCK_DICT (bl) = dict_create_hashed_expandable ();
>> + BLOCKVECTOR_BLOCK (bv, FIRST_LOCAL_BLOCK) = bl;
> Is there any particular reason not to use the global block? If so
> might want to comment what it is.
Yes: we never want these symbols to be found by a normal search of all
symtabs' global blocks, because we don't trust these symbols. We only
want them found as a last resort, once we've looked every place that
symbols associated to classes should live. So that's why I stash them
in a local block. I'll add a comment to that effect.
David Carlton
carlton@kealia.com
next prev parent reply other threads:[~2003-08-05 18:06 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-16 20:22 David Carlton
2003-06-22 17:42 ` Daniel Jacobowitz
2003-06-24 19:00 ` David Carlton
2003-06-24 19:02 ` Daniel Jacobowitz
2003-06-27 16:04 ` David Carlton
2003-06-27 21:58 ` David Carlton
2003-06-27 22:32 ` David Carlton
2003-08-05 16:30 ` David Carlton
2003-08-05 17:54 ` Daniel Jacobowitz
2003-08-05 18:06 ` David Carlton [this message]
2003-08-05 18:08 ` Daniel Jacobowitz
2003-08-05 18:18 ` David Carlton
2003-08-31 19:29 ` Daniel Jacobowitz
2003-09-02 16:38 ` David Carlton
2003-09-09 19:42 ` Elena Zannoni
2003-09-09 20:28 ` David Carlton
2003-09-09 22:17 ` Elena Zannoni
2003-09-09 23:25 ` David Carlton
2003-09-11 19:52 ` David Carlton
2003-09-17 20:41 ` David Carlton
2003-09-11 23:28 ` [rfa] use allocate_block more David Carlton
2003-09-11 23:33 ` Elena Zannoni
2003-09-11 23:44 ` David Carlton
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=yf2vftcvv17.fsf@hawaii.kealia.com \
--to=carlton@kealia.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