Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [rfa] generate symbols associated to namespaces
Date: Tue, 05 Aug 2003 18:08:00 -0000	[thread overview]
Message-ID: <20030805180839.GA30301@nevyn.them.org> (raw)
In-Reply-To: <yf2vftcvv17.fsf@hawaii.kealia.com>

On Tue, Aug 05, 2003 at 11:06:28AM -0700, David Carlton wrote:
> 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.

OK.  I would have thought that the fake symtab would never have been
searched normally, though - I guess it gets chained into
objfile->symtabs?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2003-08-05 18:08 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
2003-08-05 18:08               ` Daniel Jacobowitz [this message]
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=20030805180839.GA30301@nevyn.them.org \
    --to=drow@mvista.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