This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Fid debug info in many gcj files
- From: Andrew Haley <aph at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Wed, 24 Jan 2007 12:31:21 +0000
- Subject: Fid debug info in many gcj files
We are compiling all indirect-dispatch classes with no full pathnames
in the debuginfo. As a result, gdb can't find the source files for
any of these classes.
Andrew.
2007-01-24 Andrew Haley <aph@redhat.com>
* scripts/makemake.tcl (emit_bc_rule): Set the source filename.
* sources.am: Rebuild.
Index: scripts/makemake.tcl
===================================================================
--- scripts/makemake.tcl (revision 121108)
+++ scripts/makemake.tcl (working copy)
@@ -248,7 +248,7 @@
set omit "| grep -v $exclusion_map($package)"
}
puts "\t@find \$(srcdir)/classpath/lib/$package -name '*.class'${omit} > $tname"
- puts "\t\$(LTGCJCOMPILE) -fjni -findirect-dispatch -fno-indirect-classes -c -o $loname @$tname"
+ puts "\t\$(LTGCJCOMPILE) -fsource-filename=\$(here)/classpath/lib/classes -fjni -findirect-dispatch -fno-indirect-classes -c -o $loname @$tname"
puts "\t@rm -f $tname"
puts ""