This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: status of ecj branch
Per Bothner writes:
> 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
I just built Kawa from svn head, and I get:
Attribute "SourceDebugExtension", length:66
SMAP
vectors.scm
Scheme
*S Scheme
*F
1 vectors.scm
*L
1#1,37:1
*E