This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 ""
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]