public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Re: GDB and Virtual Machines
@ 2000-12-30 15:34 Per Bothner
  0 siblings, 0 replies; 2+ messages in thread
From: Per Bothner @ 2000-12-30 15:34 UTC (permalink / raw)
  To: ldcousin; +Cc: gdb

(I came accross this message from Dec 15 while browing the archives.)

> I am currently performing the daunting job of investigating the use
> of GDB (and probably Insight) for debugging a proprietary language
> (a domain specific language) that runs as interpreted "p-code" in a
> proprietary virtual machine.  This is a scheme similar to the way
> Java runs.

You might want to take a look at the Java Platform Debugger Architecture 
at http://java.sun.com/j2se/1.3/docs/guide/jpda/index.html .  I don't
know how close your VM is to the JVM, but if you could implement some
variant of the JDWP (Java Debugger Wire Protocol) it would be cool.
Even if you have no use for JVM per se, there are some reasons for
starting with the JDWP:
* Some of the design work has already been done.
* You are more likely to get people to help you.
* More people are might use your code so it gets tested more.
* You are more likely to get your changes accepted into the gdb
sources.  (Maintaining your own version of gdb is to be avoided!)
* It is possible you might be able to use other Java debuggers
and IDEs to debug your VM.  For example NetBeans (see netbeans.org)
is on open-source Java IDE, which claims to be quite modular, and
you could probably modify to handle your own VM.

An alternative would be to map your VM into the existing gdb
remote serial protocol.  You would also create a machine description
that matches your VM.  This means a BDF target for your target etc.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* GDB and Virtual Machines
@ 2000-12-15 12:58 ldcousin
  0 siblings, 0 replies; 2+ messages in thread
From: ldcousin @ 2000-12-15 12:58 UTC (permalink / raw)
  To: gdb

Hi.  I am new to GDB, but I am currently performing the daunting job of
investigating the use of GDB (and probably Insight) for debugging a proprietary
language (a domain specific language) that runs as interpreted "p-code" in a
proprietary virtual machine.  This is a scheme similar to the way Java runs.
This proprietary virtual machine runs on many different platforms so programs
are developed once and run unchanged on those platforms.  The virtual machine
operates in a similar manner to a real machine with registers, address space,
etc.

I am wondering if 1) anyone has any familiarity with a similar project that I
could be directed to and 2) if anyone has any advice on approaching such a
project.  Thanks!

Larry Cousin


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-12-30 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-30 15:34 GDB and Virtual Machines Per Bothner
  -- strict thread matches above, loose matches on Subject: below --
2000-12-15 12:58 ldcousin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).