Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: patch to robustify gnuv3_rtti_type
Date: Sun, 20 Jan 2002 16:00:00 -0000	[thread overview]
Message-ID: <3C4B5A24.50504@bothner.com> (raw)
In-Reply-To: <20020120155405.A3461@nevyn.them.org>

Daniel Jacobowitz wrote:
> Wait a second.  Are you debugging Java or C++ here?  Or are you
> debugging a Java program and the C++ runtime,

Yes, basically.  The bug I'm currently working on is a bug in the
run-time verifier (libjava/verify.cc).

> and the same thing is
> accessible as java::lang::Class and java.lang.Class?

Yes, basically. The Class and Object classes are handled specially
by the compiler, though I'm not sure that matters to the debugger.
In general, we have gcj create the "definition" of classes; we also
auto-generate C++ header files for the same classes so they can be
accessed by C++, for writing "native" methods  However, the Class
class is special, in that the the C++ version is written by hand.

In either case, we'd like gdb to realize that java::lang::Class
and java.lang.Class are the same, which seems to require namespace
support to do it properly.

> Why do you currently emit java.lang.Class?

Because is seemed the right thing to do, given gdb's lack of proper
namespace support - we just treat "java.lang.Object" as an atomic
name.  This fixes some problems and breaks others.

Also, gcj internally uses the fully-qualfied name "java.lang.Class"
internally.  Changing this will take some work, but if it will
give us proper namespace-aware debugging I'm willing to do it.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


  reply	other threads:[~2002-01-21  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-19 12:40 Per Bothner
2002-01-19 15:38 ` Daniel Jacobowitz
2002-01-19 16:15   ` Per Bothner
2002-01-19 16:19     ` Daniel Jacobowitz
2002-01-20 12:43       ` Per Bothner
2002-01-20 12:54         ` Daniel Jacobowitz
2002-01-20 16:00           ` Per Bothner [this message]
2002-01-20 14:24         ` Daniel Berlin
2002-01-19 17:50 ` Daniel Jacobowitz

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=3C4B5A24.50504@bothner.com \
    --to=per@bothner.com \
    --cc=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