status of ecj branch

Per Bothner per@bothner.com
Tue Jun 20 16:15:00 GMT 2006


Andrew Haley wrote:
> 3.  ecj produces relative pathnames for source files, so gdb can't
>     find any source.

I suggest teaching ecj to emit SourceDebugExtension, as defined in
JSR-45.  Eclipse may already support JSR-45.  The main focus of
JSR-45 is to handle things like source-to-Java translators (such as JSP)
and include files, but it also includes a standard way to specify
full absoluete source filename.

Kawa emits SourceDebugExtension, and in March 2005 I added support to
jcf-dump to print it sanely.  For example kawa/lib/vectors.class:

Attributes (count: 2):
Attribute "SourceFile", length:2, #352="vectors.scm"
Attribute "SourceDebugExtension", length:113
SMAP
vectors.scm
Scheme
*S Scheme
*F
+ 1 vectors.scm
/home/bothner/Kawa/head/kawa/lib/vectors.scm
*L
1#1,37:1
*E
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/



More information about the Java mailing list