Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 55584 invoked from network); 6 Jul 2007 07:22:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2007 07:22:28 -0000 Received: (qmail 53609 invoked by uid 500); 6 Jul 2007 05:22:28 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 53592 invoked by uid 500); 6 Jul 2007 05:22:28 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 53583 invoked by uid 99); 6 Jul 2007 05:22:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 22:22:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 22:22:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ABE487141F0 for ; Thu, 5 Jul 2007 22:22:04 -0700 (PDT) Message-ID: <32967642.1183699324701.JavaMail.jira@brutus> Date: Thu, 5 Jul 2007 22:22:04 -0700 (PDT) From: "Ivan Popov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-2892) [jdktools][jdwp] Support on-demand debugger attach in JDWP agent In-Reply-To: <9272445.1167215121160.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ivan Popov updated HARMONY-2892: -------------------------------- Attachment: H2892_jdwp_tests.patch And the last patch 'H2892_jdwp_tests.patch' adds new test cases to JDWP unit tests, which check this new functionality: org.apache.harmony.jpda.tests.jdwp.DebuggerOnDemand.OnthrowDebuggerLaunchTest (4 test cases) This patch also modifies slightly common JPDA tests framework to enable such kind of tests. All other JDWP unit, functional, and stress tests still work fine with the modified framework. These new tests work fine against Harmony M2 build with patched JDWP agent despite known DRLVM problem in HARMONY-4338 (because these tests use only caught exceptions). But these tests don't work with RI because of a problem with passing quoted option to agent command line. Several experiments revealed that Runtime.exec(String) and Runtime.exec(String[]) work differently with double quoted arguments on Windows and Linux platforms (either with RI and Harmony). I was not able to arrange tests in a unified manner to pass double quoted agent option via Runtime.exec equally on both Windows and Linux. I had to use single quotes, which are recognized by JDWP agent in Harmony, but not recognized by JDWP agent in RI. If someone can suggest better idea for dealing with double quoted arguments, these tests my be improved separately. Now they work fine with Harmony and it's safe to apply this patch. This patch should be applied after patch for HARMONY-3377, otherwise it will warn about shifted hunks, but still work well. > [jdktools][jdwp] Support on-demand debugger attach in JDWP agent > ---------------------------------------------------------------- > > Key: HARMONY-2892 > URL: https://issues.apache.org/jira/browse/HARMONY-2892 > Project: Harmony > Issue Type: Improvement > Components: JDK > Reporter: Ivan Popov > Priority: Minor > Attachments: H2892_jdwp_agent.patch, H2892_jdwp_agent_additional.patch, H2892_jdwp_tests.patch > > > JDWP agent implementation in RI provides user with an ability to launch debugger on-demand when exception is thrown in an application. Though this is not required by JDWP spec, but this feature is very useful and worth to be implemented in Harmony's JDWP agent. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.