Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: David Carlton <carlton@math.stanford.edu>
To: tromey@redhat.com
Cc: gdb <gdb@sources.redhat.com>
Subject: Re: struct environment
Date: Fri, 06 Sep 2002 17:19:00 -0000	[thread overview]
Message-ID: <ro1lm6ebrdm.fsf@jackfruit.Stanford.EDU> (raw)
In-Reply-To: <87heh2ofia.fsf@fleche.redhat.com>

On 06 Sep 2002 17:38:37 -0600, Tom Tromey <tromey@redhat.com> said:
>>>>>> "David" == David Carlton <carlton@math.stanford.edu> writes:

David> * Some sort of growing implementation (necessary for jv-lang.c,
David> alas).

> I'm not familiar with the code in jv-lang.c.  But are you sure it is
> really necessary?  Could it be that the code there is a workaround
> for the existing lack of namespaces?  I seem to recall reading that
> the gcj support in gdb had such hacks.  I don't know either way;
> I've just seen this mentioned a few times recently and I wanted to
> make sure that the possibility is considered.

I would be surprised if it weren't some sort of hack as you suggest.
What's going on is that there seems to be a block created whose sole
purpose is to contain symbols giving the names of classes.  They're
all getting plunked in the global namespace, even though they include
package names; presumably the package name hierarchy should eventually
be reflected in the way that GDB stores that information.

One interesting thing that's going on is that the classes in question
are all apparently "dynamically loaded".  It might be the case that
this is somewhat unexpected to the rest of GDB; I'm really not sure.
Also, if my dim memory of Java is correct, "global symbols" are kind
of rare in Java: probably each file only contains one symbol that's
really global in any sense (that symbol being a class whose name is
the same as the file), and of course that symbol probably actually
lives in a package.  So maybe the fact that almost everything in Java
lives in a class affects the way that GDB's Java code handles
symbols.  I dunno.

It seems to me that, in the short term, the thing to do is to just
deal with making the minimal number of changes to jv-lang.c as is;
it's a lot easier to handle it as a special case for now and postpone
properly handling it until we're about to start seriously thinking
about reworking C++ namespaces.  But certainly this should be reworked
at an appropriate stage of this process.

> I think Per Bothner <bothner@bothner.com> may be able to answer
> questions about this code.  He wrote it and he's still involved with
> gcj.

Good idea; I'll do that on Monday.

David Carlton
carlton@math.stanford.edu


  reply	other threads:[~2002-09-07  0:19 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
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 [this message]
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=ro1lm6ebrdm.fsf@jackfruit.Stanford.EDU \
    --to=carlton@math.stanford.edu \
    --cc=gdb@sources.redhat.com \
    --cc=tromey@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