From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11982 invoked by alias); 9 Feb 2012 20:21:42 -0000 Received: (qmail 11969 invoked by uid 22791); 9 Feb 2012 20:21:40 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mailrelay009.isp.belgacom.be (HELO mailrelay009.isp.belgacom.be) (195.238.6.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Feb 2012 20:21:26 +0000 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBAJgqNE/ZiFMa/2dsb2JhbAAMN4UPrUYBAQEEI1YQCw4KAgImAgJXBhOvE5IpgS+KYgsHAQYHAhMEAQYEAwcBASWGZoEWBKgT Received: from 26.83-136-217.adsl-dyn.isp.belgacom.be (HELO [192.168.1.3]) ([217.136.83.26]) by relay.skynet.be with ESMTP; 09 Feb 2012 21:21:04 +0100 Subject: Re: GDB and the OpenJDK JVM From: Philippe Waroquiers To: Daniel Jacobowitz Cc: gdb@sourceware.org In-Reply-To: References: <20120209161612.GA7088@redhat.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 09 Feb 2012 20:21:00 -0000 Message-ID: <1328818882.2213.9.camel@soleil> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00027.txt.bz2 On Thu, 2012-02-09 at 13:33 -0500, Daniel Jacobowitz wrote: > On Thu, Feb 9, 2012 at 11:16 AM, Gary Benson wrote: > > Hi Daniel, > > > > Daniel Jacobowitz wrote: > >> Has anyone investigated non-trivial integration between GDB and this > >> (or any other) JVM? So far I haven't turned up anything useful. Some > >> examples of the sorts of integration I mean: > >> > >> * Showing information about Java objects given JNI handles > >> * Interleaving Java frames in the stack trace > >> * Fabricating unwind information for JIT'd code > >> * Automatically handling SEGVs related to the garbage collector > >> without hiding SEGVs for native code > > > > I don't know of anybody who has done any work in this area. I do know > > that HotSpot has a number of functions designed solely to be called by > > debuggers or debug code, and it's possible that #1 and #3 are covered > > that way. None of this stuff is documented anywhere I know of so it's > > worth asking on one of the HotSpot lists in case somebody can help. > > Thanks! Is there a list you'd recommend? > On google, the keywords 'java debugger interface' points at some "standardised" documents (including a "wire protocol") aiming at connecting a debugger to a JVM. Philippe