Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Ian Lance Taylor <ian@wasabisystems.com>
To: Andrew Haley <aph@redhat.com>
Cc: tromey@redhat.com, Daniel Jacobowitz <drow@false.org>,
	java@gcc.gnu.org, gdb@sources.redhat.com
Subject: Re: Binary Compatibility: debug info for compiled Java programs
Date: Thu, 10 Jun 2004 17:12:00 -0000	[thread overview]
Message-ID: <m3wu2fz6av.fsf@gossamer.airs.com> (raw)
In-Reply-To: <16584.37526.974458.647364@cuddles.cambridge.redhat.com>

Andrew Haley <aph@redhat.com> writes:

>  > By the way, Tom and Andrew, I meant to ask, but I forgot: would it
>  > make sense to build the numeric otables and atables for the common
>  > case, and then recompute only when required?
> 
> That's possibly true, but you'd somehow have to discover that
> something had changed, and I'm not sure how you'd do that without
> doing the lookups.

It seems to me that you could hash the relevant information for each
relevant class and store it in the defining class and in the loaded
class.  When you load the binary, check the hashes, and recompute if
they differ.

>  > I have to think that the common case is pretty darn common--I'm
>  > sure people don't spend all their time loading classes into
>  > different hierarchies.
> 
> What is very common is for people to distribute Java binaries without
> specifying the exact versions of the classes they depend on.  So, it's
> normal for the run-time library environment of a Java program to be
> different from the compile-time environment.  The whole idea of binary
> compatibility is to make this possible.

On the other hand, at during compile/edit/debug, the compile-time and
run-time environment should be similar.

Hmmm, I suppose that could be a good way to hide bugs, though.

Ian


  reply	other threads:[~2004-06-10 17:12 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-09 12:15 Andrew Haley
2004-06-09 13:09 ` Daniel Jacobowitz
2004-06-09 13:19   ` Andrew Haley
2004-06-09 13:29     ` Daniel Jacobowitz
2004-06-09 13:39       ` Andrew Haley
2004-06-09 22:17         ` Daniel Jacobowitz
2004-06-09 22:37           ` Tom Tromey
2004-06-10 16:37             ` Daniel Jacobowitz
2004-06-10 16:42               ` Tom Tromey
2004-06-10 16:47                 ` Ian Lance Taylor
2004-06-10 16:58                   ` Andrew Haley
2004-06-10 17:12                     ` Ian Lance Taylor [this message]
2004-06-10 17:25                       ` Andrew Haley
2004-06-10 16:44               ` Andrew Haley
2004-06-10 16:54                 ` Daniel Jacobowitz
2004-06-09 14:13 ` Per Bothner
2004-06-09 14:20   ` Andrew Haley
2004-06-09 20:46 ` Anthony Green
2004-06-09 21:26   ` Andrew Cagney
2004-06-09 22:11     ` Anthony Green
2004-06-11 13:04     ` Andrew Haley
2004-06-11 15:11       ` Andrew Cagney
2004-06-11 15:17         ` Andrew Haley

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=m3wu2fz6av.fsf@gossamer.airs.com \
    --to=ian@wasabisystems.com \
    --cc=aph@redhat.com \
    --cc=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=java@gcc.gnu.org \
    --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