From: Daniel Berlin <dberlin@dberlin.org>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: David Carlton <carlton@math.stanford.edu>, gdb <gdb@sources.redhat.com>
Subject: Re: struct environment
Date: Fri, 06 Sep 2002 12:55:00 -0000 [thread overview]
Message-ID: <8683BB1E-C1D2-11D6-AB8C-000393575BCC@dberlin.org> (raw)
In-Reply-To: <20020906194110.GA12820@nevyn.them.org>
On Friday, September 6, 2002, at 03:41 PM, Daniel Jacobowitz wrote:
> On Fri, Sep 06, 2002 at 03:34:34PM -0400, Daniel Berlin wrote:
>>
>>
>>> one which might not even be necessary (see below).
>>>
>>>>> And there's another, even more important reason: the global
>>>>> environment (and, in the future, namespaces). The global
>>>>> environment spans multiple files, uses lazy evaluation
>>>>> (i.e. partial_symbols), and there's even minimal_symbols to
>>>>> shoehorn in there somehow. So it's going to need its own special
>>>>> implementation (which will be much more complicated than the
>>>>> implementations for blocks).
>>>
>>>> This is why I don't like the environment == list-of-symbols thing.
>>>> An environment may HAVE a list of symbols, but it is not its list of
>>>> symbols. You shouldn't grow the list of symbols in the global
>>>> environment when a new file is added. Instead you should associate
>>>> a new list of symbols with it.
>>
>> This makes lookup dependent on two things, instead of one (number of
>> files, and number of names, vs number of names).
>> Bad idea when you can avoid it.
>> If you want to know what blocks go with which files, than store *that*
>> information.
>> Removal is *not* the common case.
>
> Well, what I had in mind when I wrote that was the same sort of thing
> you originally described - with a cached mapping of symbols -> blocks.
> I do need to sit down and think about how namespaces interact here
> however... gets a little peculiar.
>
>
>> Note that this wasn't the first time someone wanted to do this. HP
>> has a
>> whole "FAT_FREE_PSYMTABS" thing in WDB.
>
> Yeah. Killing psymtabs in general would be nice but that's tabled
> behind stub methods (which I am slowing quashing).
>
> What's the current status of the location expression stuff, by the
> way?
I've been too busy with law school and interviews (2nd year law
students have interviews for summer jobs in late august and early
september. Absurd, no?) to work on it.
I did make sure Peter Sofa and Jim Blandy know this, and that if they
want it done anytime soon, to work on it themselves.
The changes Jim requested probably wouldn't take more than a day or two
to implement, i just don't have that day or two right now.
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
next prev parent reply other threads:[~2002-09-06 19:55 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-05 13:50 David Carlton
2002-09-06 8:06 ` Daniel Jacobowitz
2002-09-06 10:20 ` David Carlton
2002-09-06 10:57 ` Daniel Jacobowitz
2002-09-06 11:56 ` David Carlton
2002-09-06 12:34 ` Daniel Berlin
2002-09-06 12:41 ` Daniel Jacobowitz
2002-09-06 12:55 ` Daniel Berlin [this message]
2002-09-11 11:33 ` David Carlton
2002-09-11 11:36 ` Daniel Jacobowitz
2002-09-11 12:27 ` David Carlton
2002-09-06 14:43 ` David Carlton
2002-09-06 14:46 ` Daniel Jacobowitz
2002-09-06 14:57 ` mdebugread.c (was Re: struct environment) David Carlton
2002-09-06 15:35 ` Daniel Jacobowitz
2002-09-10 17:25 ` struct environment David Carlton
2002-09-10 17:31 ` Daniel Jacobowitz
2002-09-11 10:29 ` David Carlton
2002-09-11 10:55 ` Daniel Jacobowitz
2002-09-11 12:33 ` Daniel Berlin
2002-09-10 17:36 ` David Carlton
2002-09-16 22:03 ` Andrew Cagney
2002-09-06 15:00 ` David Carlton
2002-09-06 16:37 ` Tom Tromey
2002-09-06 17:19 ` David Carlton
2002-09-07 10:26 ` Per Bothner
2002-09-07 10:32 ` Daniel Jacobowitz
2002-09-09 11:18 ` David Carlton
2002-09-12 12:26 ` Andrew Cagney
2002-09-13 9:44 ` David Carlton
2002-09-17 0:48 ` Andrew Cagney
2002-09-17 6:41 ` Daniel Jacobowitz
2002-09-17 8:59 ` Andrew Cagney
2002-09-17 9:07 ` Daniel Jacobowitz
2002-09-17 10:54 ` Andrew Cagney
2002-09-17 11:02 ` Daniel Jacobowitz
2002-09-17 12:37 ` Andrew Cagney
2002-09-17 12:41 ` Daniel Jacobowitz
2002-09-18 8:13 ` Andrew Cagney
2002-09-17 12:52 ` Daniel Berlin
2002-09-17 13:34 ` Daniel Jacobowitz
2002-09-17 21:51 ` Daniel Berlin
2002-09-18 7:26 ` Daniel Jacobowitz
2002-09-18 9:08 ` David Carlton
2002-09-17 12:18 ` David Carlton
2002-09-17 10:29 ` David Carlton
2002-09-17 12:50 ` Daniel Berlin
2002-09-17 13:24 ` David Carlton
2002-09-18 22:26 ` Eli Zaretskii
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=8683BB1E-C1D2-11D6-AB8C-000393575BCC@dberlin.org \
--to=dberlin@dberlin.org \
--cc=carlton@math.stanford.edu \
--cc=drow@mvista.com \
--cc=gdb@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