harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weldon Washburn" <weldon...@gmail.com>
Subject [DRLVM] build fixes that allow normal single step debug of the Jitrino.JET write barrier patch
Date Thu, 13 Jul 2006 23:16:16 GMT
All,

The following build mods will create a drlvm binary that can be used
to debug the Jitrino.JET write barriers.  Rather than make everyone
suffer through long email chains, Alex and I collaborated offline.

The mods to drlvm/trunk/build/build.bat:

--- build.bat   (revision 421403)
+++ build.bat   (working copy)
@@ -138,7 +138,7 @@
 )

 REM  Note: vm.jitrino is always complied in release mode, otherwise it makes VM
 debug too slow
-CALL "%ANT_COMMAND%" -f make/build.xml -Dvm.jitrino.cfg=release %*
+CALL "%ANT_COMMAND%" -f make/build.xml %*

 GOTO THEEND

Mods to drlvm/trunk/build/make/components/vm/jitrino.xml

 <project name="vm.jitrino">
-    <target name="init">
+    <target name="init" depends="common_vm">
         <property name="build.depends"
value="extra.apr,vm.vmcore,vm.encoder" />
         <property name="outtype" value="shared" />
         <property name="libname" value="jitrino" />
@@ -48,7 +48,8 @@
         <patternset id="java.classes.pattern" includes="empty_pattern"/>

         <!-- the compiler doesn't extend common compiler -->
-        <compiler name="${build.cxx}" id="cpp.compiler">
+        <!-- compiler name="${build.cxx}" id="cpp.compiler" -->
+        <compiler id="cpp.compiler" extends="common.cpp.compiler">

For some unknown reason, svn diff wants to report that every line has
changed in common_vm.xml.  Probably something to do with carriage
return line feed.  In any case the mods to
drlvm/trunk/build/make/targets/common_vm.xml.  These are the same mods
that were reported in the email titled, "[DRLVM] questions about
"build.bat -DEBUILD_CFG=debug -DCXX=msvc".  They are repeated here for
completeness:

- <select os="win" cxx="msvc">
 <compilerarg value="/Od" />
 <compilerarg value="/MTd" />
 <compilerarg value="/D_DEBUG" />
 </select>

A new "svn update" of both classlib and drlvm was downloaded this
morning.  The above mods were applied.  And, finally, a ""build.bat
-DEBUILD_CFG=debug -DCXX=msvc" was run.  The binary is now debuggable
with MS Visual Studio.

Question:  Should the above be bundled up as a JIRA patch?

-- 
Weldon Washburn
Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message