Changeset 14165


Ignore:
Timestamp:
10/05/12 15:20:57 (9 years ago)
Author:
Mark Evenson
Message:

Ant target to 'abcl.compile.lisp.debug' via JDWP.

With this target, he Lisp compilation is invoked with the contents of
the JVM property "abcl.compile.lisp.debug.jvmarg". The default value
of this property suspends the JVM at the start of the compilation,
listening on port 6789.

Location:
trunk/abcl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/abcl.properties.in

    r13932 r14165  
    33# XXX should be called 'build.properties' but this collides with its usage by the Eclipe IDE
    44
    5 # Template for settings the Ant based build process.
    6 
     5# Template for Ant based build process settings.
    76
    87# Attempt to perform incremental compilation?
    98#abcl.build.incremental=true
    109
    11 # skips the compilation of Lisp sources in Netbeans
    12 # (for debugging compiler-pass1.lisp and subsequent passes)
    13 #abcl.compile.lisp.skip=true
     10# Additional site specific startup code to be merged in 'system.lisp' at build time
     11#abcl.startup.file=${basedir}/startup.lisp
    1412
    1513# java.options sets the Java options in the abcl wrapper scripts
     
    1715# See
    1816# http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html
    19 # for options for the Oracle HotSpot JVM
    20 
    21 # HotSpot Examples:
     17# for options for the Oracle HotSpot JVM.
    2218
    2319# Java7 on 64bit optimizations
     
    2723#java.options=-d64 -Xmx1g
    2824
    29 # Use the G1 garbage collector stablized with jdk1.7.0_04
     25# Use the G1 garbage collector stablized with jdk1.7.0_04, printing GC details
    3026#java.options=-d64 -Xmx4g -XX:+PrintGCDetails -XX:+UseG1GC
    3127
     
    4440#java.options=-ea
    4541
    46 # Additional site specific startup code to be merged in 'system.lisp' at build time
    47 #abcl.startup.file=${basedir}/startup.lisp
     42## ABCL Development
     43
     44# skips the compilation of Lisp sources in Netbeans
     45# (for debugging compiler-pass1.lisp and subsequent passes)
     46#abcl.compile.lisp.skip=true
     47
     48# JVM option to execute when debugging the Lisp compilation via 'abcl.compile.lisp.debug'
     49#abcl.compile.lisp.debug.jvmarg=-agentlib:jdwp=transport=dt_socket,server=y,address=6789,suspend=y
     50
     51
  • trunk/abcl/build.xml

    r14042 r14165  
    8282
    8383    <patternset id="abcl.objects">
    84       <!-- "system.lisp" is dynamically created by COMPILE-SYSTEM -->
     84      <!-- "system.lisp" is dynamically created by COMPILE-fSYSTEM -->
    8585      <include name="org/armedbear/lisp/system.lisp"/>
    8686      <include name="org/armedbear/lisp/**/*.class"/>
     
    233233    <property name="system.lisp.file"
    234234              value="${build.classes.dir}/org/armedbear/lisp/system.lisp"/>
    235    
     235
    236236    <target name="abcl.compile.lisp"
    237237            depends="abcl.copy.lisp,abcl.compile.java,abcl.system.update.maybe,abcl.fasls.uptodate"
    238238            unless="abcl.fasls.uptodate.p">
    239       <echo>
     239      <abcl.compile.lisp/>
     240    </target>
     241
     242    <macrodef name="abcl.compile.lisp">
     243      <element name="additional.jvmarg" optional="true"/>
     244      <sequential>
     245        <echo>
    240246Compiling Lisp system
    241247from ${abcl.home.dir}
     
    253259        <jvmarg value="-Dabcl.home=${abcl.home.dir}${file.separator}"/>
    254260        <jvmarg value="-Dabcl.autoload.verbose=Y"/>
     261        <additional.jvmarg/>
    255262        <arg value="--noinit"/>
    256263        <arg value="--nosystem"/>
     
    261268        <fileset file="${abcl.startup.file}"/>
    262269      </concat>
     270        </sequential>
     271    </macrodef>
     272
     273    <property name="abcl.compile.lisp.debug.jvmarg"
     274              value="-agentlib:jdwp=transport=dt_socket,server=y,address=6789,suspend=y"/>
     275    <target name="abcl.compile.lisp.debug"
     276            depends="abcl.copy.lisp,abcl.compile.java,abcl.system.update.maybe,abcl.fasls.uptodate"
     277            unless="abcl.fasls.uptodate.p">
     278      <echo>Debugging with jvmarg ${abcl.compile.lisp.debug.jvmarg}</echo>
     279      <abcl.compile.lisp>
     280          <additional.jvmarg>
     281            <jvmarg value="${abcl.compile.lisp.debug.jvmarg}"/>
     282          </additional.jvmarg>
     283      </abcl.compile.lisp>
    263284    </target>
    264285
Note: See TracChangeset for help on using the changeset viewer.