gcc/libjava
Bryce McKinlay 18744d9b72 New Stack Trace infrastructure.
2005-03-10  Bryce McKinlay  <mckinlay@redhat.com>

	New Stack Trace infrastructure.
	* Makefile.am (libgcj0_convenience_la_SOURCES): Add stacktrace.cc.
	(gnu/gcj/runtime/StackTrace.lo): Removed.
	(ordinary_java_source_files): Remove obsolete files.
	(nat_source_files): Remove obsolete files. Add natVMThrowable.cc.
	* configure.host (fallback_backtrace_h): Set backtrace header
	for mingw and cygwin targets.
	* configure.ac: Make symlink for fallback backtrace headers.
	* Makefile.in, configure: Rebuilt.
	* defineclass.cc (_Jv_ClassReader::read_one_code_attribute):
	Read 'LineNumberTable' attribute.
	(_Jv_ClassReader::read_one_class_attribute): Read 'SourceFile'
	attribute.
	(_Jv_ClassReader::handleCodeAttribute): Initialize method line
	table fields.
	* exception.cc: Remove unused include.
	* interpret.cc (DIRECT_THREADED, insn_slot): Moved to java-interp.h.
	(SAVE_PC): New macro. Save current PC in the interpreter frame.
	(NULLCHECK, NULLARRAYCHECK): Use SAVE_PC.
	(_Jv_InterpMethod::compile): Translate bytecode PC values in the line
	table to direct threaded instruction values.
	(_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Removed.
	(_Jv_InterpMethod::run): No longer member function. All
	callers updated. Remove _Unwind calls. Call SAVE_PC whenever a call
	is made or where an instruction could throw.
	(_Jv_InterpMethod::get_source_line): New. Look up source line numbers
	in line_table.
	* prims.cc (catch_segv): Construct exception after MAKE_THROW_FRAME.
	(catch_fpe): Likewise.
	* stacktrace.cc: New file. Stack trace code now here.
	* gnu/gcj/runtime/MethodRef.java:
	* gnu/gcj/runtime/NameFinder.java: Mostly reimplemented. Now simply
	calls addr2line to look up PC addresses in a given binary or shared
	library.
	* gnu/gcj/runtime/StackTrace.java, gnu/gcj/runtime/natNameFinder.cc,
	gnu/gcj/runtime/natStackTrace.cc: Removed.
	* gnu/java/lang/MainThread.java (call_main): Add comment warning that
	this function name is specially recognised by the stack trace code
	and shouldn't be changed.
	* include/java-interp.h (DIRECT_THREADED, insn_slot): Moved here.
	(struct  _Jv_LineTableEntry, line_table, line_table_len): New.
	(_Jv_InterpMethod::run): Update declaration.
	(_Jv_StackTrace_): New friend. NameFinder and StackTrace no longer
	friends.
	(_Jv_InterpFrame): Renamed from _Jv_MethodChain. Add PC field.
	* include/java-stack.h: New file. Declarations for stack tracing.
	* include/jvm.h (_Jv_Frame_info): Removed.
	* java/lang/Class.h: Update friend declarations.
	* java/lang/VMClassLoader.java (getSystemClassLoader): Simplify
	exception message.
	* java/lang/VMThrowable.java (fillInStackTrace): Now native.
	(getStackTrace): Now native.
	(data): New RawDataManaged field.
	* java/lang/natClass.cc: Update includes.
	(forName): Use _Jv_StackTrace::GetCallingClass for
	calling-classloader check.
	(getClassLoader): Likewise.
	* java/lang/natRuntime.cc: Update includes.
	(_load): Use _Jv_StackTrace::GetFirstNonSystemClassLoader.
	* java/lang/natVMSecurityManager.cc: Update includes.
	(getClassContext): Use _Jv_StackTrace::GetClassContext.
	* java/lang/natVMThrowable.cc: New file. Native methods for
	VMThrowable.
	* java/lang/reflect/natArray.cc: Update includes.
	(newInstance): Use _Jv_StackTrace::GetCallingClass to implement
	accessibility check.
	* java/lang/reflect/natConstructor.cc: Update includes.
	(newInstance): Use _Jv_StackTrace::GetCallingClass to implement
	accessibility check.
	* java/lang/reflect/natField.cc: Update includes.
	(getAddr): Use _Jv_StackTrace::GetCallingClass to implement
	accessibility check.
	* java/lang/reflect/natMethod.cc: Update includes.
	(invoke): Use _Jv_StackTrace::GetCallingClass to implement
	accessibility check.
	* java/util/natResourceBundle.cc: Update includes.
	(getCallingClassLoader): Use _Jv_StackTrace::GetCallingClass.
	* java/util/logging/natLogger.cc: Update includes. Use
	_Jv_StackTrace::GetCallerInfo to get call-site info.
	* sysdep/generic/backtrace.h: Fallback backtrace code. Stub
	implementation.
	* sysdep/i386/backtrace.h: New. Fallback backtrace code. i386
	implementation.

From-SVN: r96253
2005-03-10 19:02:21 +00:00
..
external re PR bootstrap/17383 (Building in src dir fails) 2005-02-28 13:26:36 +00:00
gcj re PR bootstrap/17383 (Building in src dir fails) 2005-02-28 13:26:36 +00:00
gnu New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
include New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
java New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
javax 2005-02-22 Jeroen Frijters <jeroen@frijters.net> 2005-02-22 18:58:53 +00:00
jni gtk_jawt.c (classpath_jawt_get_drawable, [...]): New functions. 2005-03-05 21:47:10 +00:00
libltdl Makefile.in: Regenrate with Automake 1.9.3. 2004-11-24 21:01:02 +00:00
org/ietf/jgss Makefile.am: New file. 2005-02-02 00:42:32 +00:00
scripts Character.java, [...]: Reorder "final static" to "static final". 2004-11-24 13:33:01 +00:00
sysdep New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
testsuite re PR java/20312 (No warning on bad method) 2005-03-10 18:57:01 +00:00
.cvsignore ignore autom4te.cache 2004-08-23 23:51:56 +00:00
COPYING COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes... 2000-12-18 09:12:19 +00:00
ChangeLog New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
ChangeLog-1999
ChangeLog-2001 ChangeLog rotation 2002-01-22 00:20:23 +00:00
ChangeLog-2002 ChangeLog rotation 2004-01-17 08:40:41 +00:00
ChangeLog-2003 ChangeLog rotation 2004-01-17 08:40:41 +00:00
HACKING HACKING: Remove reference to special automake. 2004-08-30 20:45:10 +02:00
LIBGCJ_LICENSE Add license clarification. 2002-01-22 22:40:42 +00:00
Makefile.am New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
Makefile.in New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
NEWS NEWS: Draft of libgcj NEWS for 4.0. 2005-02-19 00:47:33 +00:00
README README: Remove obsolete info. 2004-07-29 03:13:04 +01:00
THANKS README: Remove obsolete info. 2004-07-29 03:13:04 +01:00
acinclude.m4 Makefile.am: Run aclocal with -I ../config 2004-09-23 01:14:03 +00:00
aclocal.m4 re PR libgcj/7305 (Install path for libgcj header files) 2004-12-03 11:15:25 +00:00
addr2name.awk
boehm.cc * Merged gcj-abi-2-dev-branch to trunk. 2004-11-25 03:47:08 +00:00
configure New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
configure.ac New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
configure.host New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
darwin.cc Index: gcc/gcc/ChangeLog 2004-10-26 06:09:05 +00:00
defineclass.cc New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
exception.cc New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
gij.cc gij.cc (version): Change year for '--version' to 2005. 2005-02-18 20:52:16 +00:00
interpret.cc New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
jawt.c gtk_jawt.c (classpath_jawt_get_drawable, [...]): New functions. 2005-03-05 21:47:10 +00:00
jni.cc re PR libgcj/16923 (-D* Options passed to JNI_CreateJavaVM are ignored) 2005-02-23 17:36:26 +00:00
libgcj-test.spec.in * libgcj.spec.in, libgcj-test.spec.in: Revert for now. 2002-03-31 18:24:59 +00:00
libgcj.pc.in 2003-07-09 Michael Koch <konqueror@gmx.de> 2003-07-09 07:11:13 +00:00
libgcj.spec.in configure.host (alpha*-*): Default to -mieee. 2003-02-13 02:51:26 +00:00
libtool-version libtool-version: Increased `current' to 6. 2004-01-19 19:01:59 +00:00
link.cc re PR java/20215 (gcj does not accept classes with same name fields) 2005-03-07 17:18:33 +00:00
mauve-libgcj * mauve-libgcj: Exclude some swing tests. 2005-01-10 22:57:53 +00:00
no-threads.cc natFinalizerThread.cc: New file. 2001-10-10 22:25:43 +00:00
nogc.cc nogc.cc: Remove warnings. 2002-01-27 22:33:35 +00:00
pkg.m4 configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1. 2004-01-30 22:01:11 +00:00
posix-threads.cc prims.cc (_Jv_CreateJavaVM): Add comment about initialization order. 2005-02-16 04:16:06 +00:00
posix.cc posix.cc: added #include<stdio.h> 2003-07-08 04:49:16 +00:00
prims.cc New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
stacktrace.cc New Stack Trace infrastructure. 2005-03-10 19:02:21 +00:00
verify.cc re PR java/20056 ('verification failed: incompatible type on stack' with --indirect-dispatch) 2005-02-22 18:14:04 +00:00
win32-threads.cc re PR libgcj/14751 ([win32] thread creation leaks system handle resources) 2004-09-11 19:13:51 +00:00
win32.cc configure.in [...] (SYSTEMSPEC): Remove -lwsock32. 2004-08-01 04:29:31 +00:00

README

This is libgcj: the runtime library for gcj, the GNU Compiler for Java. 
libgcj provides a partial implementation of the Java Class Libraries.

libgcj is free software.  See the file LIBGCJ_LICENSE for copying permission.


DOCUMENTATION
=============

All documentation, including detailed installation and usage instructions,
can be found on the gcj web pages at this URL:

		http://gcc.gnu.org/java/

BUGS
====

Please submit bug reports via this URL:

	http://gcc.gnu.org/bugzilla