harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Popov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2892) [jdktools][jdwp] Support on-demand debugger attach in JDWP agent
Date Fri, 06 Jul 2007 05:22:04 GMT

     [ 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.


Mime
View raw message