1 2007-01-31 Andreas Tobler <a.tobler@schweiz.org>
3 * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add
4 -shared-libgcc to the cxxflaglist for Darwin.
6 2007-01-31 Tom Tromey <tromey@redhat.com>
8 * scripts.am, Makefile.in: Rebuilt.
9 * scripts/makemake.tcl (gnu/javax/swing/text/html/parser): Build
11 (emit_ordinary_rule): New proc.
13 2007-01-31 Keith Seitz <keiths@redhat.com>
15 * testsuite/libjava.jvmti/getmethodname.h: New file.
16 * testsuite/libjava.jvmti/getmethodname.jar: New file.
18 2007-01-31 Andrew Haley <aph@redhat.com>
20 * prims.cc (_Jv_Abort): fflush (stderr).
21 * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
23 2007-01-31 Tom Tromey <tromey@redhat.com>
25 * configure, Makefile.in: Rebuilt.
26 * configure.ac (JAR): Check for -@ feature.
27 * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
29 2007-01-31 Tom Tromey <tromey@redhat.com>
32 * configure, include/config.h.in: Rebuilt.
33 * configure.ac: Check for magic_t in magic.h.
34 * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
36 2007-01-30 Tom Tromey <tromey@redhat.com>
38 * Makefile.in: Rebuilt.
39 * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
41 2007-01-30 Andreas Tobler <a.tobler@schweiz.org>
43 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
44 cast to print it right.
46 2007-01-29 Kaloian Doganov <kaloian@doganov.org>
49 * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
52 2007-01-29 Kyle Galloway <kgallowa@redhat.com>
54 * include/java-interp.h: Added _Jv_Frame class and its two
55 subclasses _Jv_InterpFrame and _Jv_NativeFrame. Also moved
56 _Jv_FrameType from java-stack.h.
57 * include/java-stack.h: Removed _Jv_FrameType.
58 * java/lang/Thread.java: Added frame member to hold new
59 composite frame stack.
60 * java/lang/Thread.h: Regenerated.
61 * java/lang/Thread.class: Rebuilt.
62 * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
64 * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
65 (_Jv_JVMTI_GetFrameCount): New method.
66 * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
68 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
69 * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
70 * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
71 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
72 * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
75 2007-01-29 Tom Tromey <tromey@redhat.com>
77 * interpret.cc (run_debug): Remove comment.
84 (run_normal_debug): Likewise.
85 (run_synch_object_debug): Likewise.
86 (run_class_debug): Likewise.
87 (run_synch_class_debug): Likewise.
92 (NULLARRAYCHECK): Likewise.
93 (ARRAYBOUNDSCHECK): Likewise.
94 * interpret-run.cc (insn_target) <breakpoint>: Tidy.
96 2007-01-29 Tom Tromey <tromey@redhat.com>
98 * configure, Makefile.in: Rebuilt.
99 * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
100 * configure.ac (BASH_JAR): Removed conditional.
101 (JAR): Prefer the jar found by AC_CHECK_PROGS.
103 2007-01-29 Tom Tromey <tromey@redhat.com>
105 * Makefile.in: Rebuilt.
106 * Makefile.am (interpret.lo): New target. Add -fwrap to
109 2007-01-29 Keith Seitz <keiths@redhat.com>
111 * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
113 [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
114 gcj. All jvmti object types now are defined to be their
115 corresponding java classes.
116 * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
118 (_Jv_JVMTI_ResumeThread): Likewise.
119 (_Jv_JVMTI_InterruptThread): Likewise.
120 (_Jv_JVMTI_SetEventNotificationMode): Likewise.
121 * gnu/classpath/jdwp/natVMVirtualMachine.cc
122 (jdwpClassPrepareCB): Likewise.
123 (jdwpThreadEndCB): Likewise.
124 (jdwpThreadStartCB): Likewise.
125 (jdwpVMInitCB): Likewise.
127 2007-01-28 Michele Sandri <gpointorama@gmail.com>
129 * gnu/java/nio/channels/natFileChannelWin32.cc
131 (unlock): Implemented.
133 2007-01-27 Andreas Tobler <a.tobler@schweiz.org>
136 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
137 libgcj_flags to undefine 'sun' at compile time.
138 * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
140 (write_barrier): Likewise.
142 2007-01-27 Keith Seitz <keiths@redhat.com>
144 * gnu/classpath/jdwp/natVMVirtualMachine.cc
145 (getAllClassMethods): Move error handling to ...
146 (throw_jvmti_error): ... here.
147 (jdwpClassPrepareCB): New function.
148 (jdwpThreadEndCB): New function.
149 (jdwpThreadStartCB): New function.
150 (jdwpVMDeathCB): New function.
151 (jdwpVMInitCB): Define and enable callbacks for
152 ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
154 2007-01-27 Jakub Jelinek <jakub@redhat.com>
156 * Makefile.am (generic_header_files): Add $(inner_nat_headers).
157 * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
158 (MYGCJH): New variable.
159 (compile-tests): New goal.
160 * Makefile.in: Rebuilt.
161 * testsuite/Makefile.in: Rebuilt.
163 2007-01-26 Tom Tromey <tromey@redhat.com>
167 2007-01-25 Tom Tromey <tromey@redhat.com>
170 * gnu/gcj/convert/Convert.java (main): Correctly handle missing
171 input or output encodings. Removed unused local variables.
173 2007-01-25 Keith Seitz <keiths@redhat.com>
175 * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
176 * gnu/classpath/jdwp/natVMVirtualMachine.cc
177 (_Jv_GetJDWP_JVMTIEnv): New function.
178 * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
179 (getSignature): Implement.
180 (getModifiers): Implement.
182 2007-01-25 Andrew Haley <aph@redhat.com>
184 * configure, Makefile.in, include/config.h.in: Rebuilt.
185 * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
186 * configure.ac: Don't check for libmagic.
187 * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
188 p_magic_close, p_magic_buffer): New globals.
189 (init): Look up 'magic' functions.
190 (guessContentTypeFromBuffer): Updated.
192 2007-01-25 Keith Seitz <keiths@redhat.com>
194 * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
195 (_Jv_JVMTI_Interface): Define GetMethodName.
196 * testsuite/libjava.jvmti/getmethodname.java: New file.
197 * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
198 * testsuite/libjava.jvmti/getmethodname.out: New file.
200 2007-01-24 Kyle Galloway <kgallowa@redhat.com>
202 * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
203 * libjava/testsuite/libjava.jvmti/interp: New folder.
204 * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
206 2007-01-24 Keith Seitz <keiths@redhat.com>
208 * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
209 CLASS_PREPARE notification.
211 2007-01-24 Keith Seitz <keiths@redhat.com>
213 * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
214 gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
215 * interpret-run.cc: Implement insn_breakpoint.
217 2007-01-24 Keith Seitz <keiths@redhat.com>
219 * prims.cc (_Jv_RunMain): Send JVMTI event notifications
220 for VM_INIT and VM_DEATH instead of the JDWP notifications.
222 2007-01-24 Keith Seitz <keiths@redhat.com>
224 * gnu/classpath/jdwp/natVMVirtualMachine.cc
225 (getAllClassMethods): Implement.
227 2007-01-24 Andrew Haley <aph@redhat.com>
229 * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
230 (getClassContext) Add a barrier to prevent GetStackWalkerStack()
231 from being sibcalled.
233 2007-01-24 Andrew Haley <aph@redhat.com>
235 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
236 * sources.am: Rebuild.
238 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
240 * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
241 _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
243 2007-01-23 H.J. Lu <hongjiu.lu@intel.com>
246 * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
247 * Makefile.in: Regenerated.
249 2007-01-22 Keith Seitz <keiths@redhat.com>
251 * gnu/classpath/jdwp/natVMVirtualMachine.cc
252 (getClassMethod): Implement.
254 2007-01-22 Keith Seitz <keiths@redhat.com>
256 * java/lang/Class.h (_Jv_GetClassStatus): Declare.
257 * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
258 * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
259 (_Jv_JVMTI_Interface): Define GetClassStatus.
261 2007-01-22 Tom Tromey <tromey@redhat.com>
263 * configure: Rebuilt.
264 * configure.ac (GCJ): Reverted patch of 2006-12-20.
266 2007-01-22 Tom Tromey <tromey@redhat.com>
269 * testsuite/libjava.jni/pr29812.java: New file.
270 * testsuite/libjava.jni/pr29812_injar.java: New file.
271 * testsuite/libjava.jni/pr29812_injar.jar: New file.
272 * testsuite/libjava.jni/pr29812.out: New file.
273 * testsuite/libjava.jni/pr29812_injar.c: New file.
274 * testsuite/libjava.jni/pr29812_injar.h: New file.
275 * testsuite/libjava.jni/pr29812.jar: New file.
276 * testsuite/libjava.jni/pr29812.c: New file.
277 * testsuite/libjava.jni/pr29812.h: New file.
278 * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
280 (gcj_jni_invocation_test_one): Use it.
281 (gcj_jni_pr29812): New proc.
282 (gcj_jni_run): Use it.
283 * java/lang/natRuntime.cc (_load): Push a new system frame before
285 * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
286 (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
287 * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
288 <allocated_p>: Now bool.
290 (_Jv_JNI_EnsureLocalCapacity): Updated.
291 (_Jv_JNI_NewLocalRef): Likewise.
292 (_Jv_JNI_NewLocalRef): Likewise.
293 (_Jv_JNI_PopLocalFrame): Likewise.
294 (_Jv_JNI_FindClass): Likewise.
295 (_Jv_GetJNIEnvNewFrame): Likewise.
296 (_Jv_JNI_AttachCurrentThread): Likewise.
297 (_Jv_GetJNIEnvNewFrameWithLoader): New function.
298 (_Jv_GetJNIEnvNewFrame): Use it.
299 * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
301 2007-01-22 Tom Tromey <tromey@redhat.com>
303 * libtool-version: Bump current to 9.
305 2007-01-22 Andrew Haley <aph@redhat.com>
307 * sysdep/alpha/locks.h (write_barrier): New.
309 2007-01-21 Matthias Klose <doko@debian.org>
311 * Makefile.am (install-exec-hook): Use transformed name.
312 * Makefile.in: Regenerate.
314 2007-01-19 Keith Seitz <keiths@redhat.com>
316 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
317 in methods and reformat.
319 * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
322 2007-01-18 Keith Seitz <keiths@redhat.com>
324 From Macro Trudel <mtrudel@gmx.ch>:
325 * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
328 2007-01-18 Marco Trudel <mtrudel@gmx.ch>
330 * jni.cc (_Jv_JNI_FindClass): Initialize class.
331 * testsuite/libjava.jni/findclass2.jar: New file.
332 * testsuite/libjava.jni/findclass2.h: New file.
333 * testsuite/libjava.jni/findclass2.java: New file
334 * testsuite/libjava.jni/findclass2.c: New file.
335 * testsuite/libjava.jni/findclass2.out: New file.
337 2007-01-18 Tom Tromey <tromey@redhat.com>
339 * configure: Rebuilt.
340 * configure.ac: Use multi_basedir instead of libgcj_basedir.
342 2007-01-18 Gary Benson <gbenson@redhat.com>
344 * gnu/java/nio/natVMPipeEcos.cc:
345 Renamed from gnu/java/nio/natPipeImplEcos.cc.
346 * gnu/java/nio/natVMPipePosix.cc:
347 Renamed from gnu/java/nio/natPipeImplPosix.cc.
348 * gnu/java/nio/natVMPipeWin32.cc:
349 Renamed from gnu/java/nio/natPipeImplWin32.cc.
350 * gnu/java/nio/natVMSelectorEcos.cc:
351 Renamed from gnu/java/nio/natSelectorImplEcos.cc.
352 * gnu/java/nio/natVMSelectorPosix.cc:
353 Renamed from gnu/java/nio/natSelectorImplPosix.cc.
354 * gnu/java/nio/natVMSelectorWin32.cc:
355 Renamed from gnu/java/nio/natSelectorImplWin32.cc.
356 * java/io/natVMObjectInputStream.cc:
357 Renamed from java/io/natObjectInputStream.cc.
358 * java/lang/natVMDouble.cc:
359 Renamed from java/lang/natDouble.cc.
360 * java/lang/natVMFloat.cc:
361 Renamed from java/lang/natFloat.cc.
362 * Makefile.am, configure.ac: Reflect the above.
363 * Makefile.in, configure: Rebuilt.
365 2007-01-17 Andrew Haley <aph@redhat.com>
367 * Makefile.in: Rebuilt.
368 * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
370 2007-01-17 Keith Seitz <keiths@redhat.com>
372 * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
373 (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
375 2007-01-16 Jack Howarth <howarth@bromo.med.uc.edu>
377 * configure.ac: Use multi.m4 from aclocal rather than custom
378 code. Use multi_basedir instead libgcj_basedir. Test for
379 /proc/self/exe when not cross-compiling.
380 * aclocal.m4: Regenerate.
381 * configure: Regenerate.
382 * Makefile.in: Regenerate.
384 2007-01-17 Gary Benson <gbenson@redhat.com>
386 * java/nio/natVMDirectByteBufferImpl.cc:
387 Renamed from java/nio/natDirectByteBufferImpl.cc.
388 * Makefile.am: Reflect the above.
389 * Makefile.in: Rebuilt.
391 2007-01-17 Marco Trudel <mtrudel@gmx.ch>
393 * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL.
394 Fixed indentation. Removed unused variable.
396 2007-01-16 Tom Tromey <tromey@redhat.com>
398 * java/lang/natThread.cc (finalize_native): Remove cast.
399 (_Jv_GetCurrentJNIEnv): Likewise.
400 * include/jvm.h (struct natThread) <jni_env>: Declare as
403 2007-01-16 Keith Seitz <keiths@redhat.com>
405 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
406 %#llx instead of %d for new_value.
407 * testsuite/libjava.jvmti/events.out: Update expected output.
408 * testsuite/libjava.jvmti/events.jar: Regenerate.
410 2007-01-16 Keith Seitz <keiths@redhat.com>
412 * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
414 (ENABLE_EVENT): New macro.
415 (initialize): Define and enable JVMTI VM_INIT callback.
416 (jdwpVMInitCB): New function.
418 2007-01-16 Kyle Galloway <kgallowa@redhat.com>
420 * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
421 * testsuite/libjava.jvmti/getallthreads.java: New test.
422 * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
423 * testsuite/libjava.jvmti/getallthreads.out: Ditto.
424 * testsuite/libjava.jvmti/getallthreads.h: Ditto.
425 * testsuite/libjava.jvmti/getallthreads.jar: Ditto.
427 2007-01-15 Keith Seitz <keiths@redhat.com>
429 * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
430 java.lang.StringBuilder instead of java.lang.StringBuffer.
431 (resumeThread): Likewise.
433 2007-01-15 Gary Benson <gbenson@redhat.com>
435 * java/nio/MappedByteBuffer.java: Removed.
436 * sources.am, Makefile.in: Rebuilt.
438 2007-01-15 Gary Benson <gbenson@redhat.com>
440 * java/net/URLClassLoader.java: Removed.
441 * gnu/java/net/loader/Load_gcjlib.java: New file.
442 * gnu/gcj/runtime/BootClassLoader.java: Ensure core
443 URL handler is present in static executables.
444 * sources.am, Makefile.in: Rebuilt.
446 2007-01-14 H.J. Lu <hongjiu.lu@intel.com>
448 * Makefile.am (libgcj_la_LDFLAGS): Add
449 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
450 (libgcj_tools_la_LDFLAGS): Likewise.
451 (libgcj_bc_la_LDFLAGS): Likewise.
452 * Makefile.in: Regenerated.
454 * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC. Set
455 LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS. Set
456 libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
457 Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
458 * configure: Regenerated.
459 * aclocal.m4: Likewise.
460 * gcj/Makefile.in: Likewise.
461 * include/Makefile.in: Likewise.
462 * testsuite/Makefile.in: Likewise.
464 2007-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
466 * sysdep/sh/locks.h (read_barrier): New.
467 (write_barrier): Likewise.
469 2007-01-12 Andrew Haley <aph@redhat.com>
471 * include/i386-signal.h: Rewrite to use rt_sigaction.
473 2007-01-11 Andrew Haley <aph@redhat.com>
475 * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
477 * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
480 2007-01-10 Tom Tromey <tromey@redhat.com>
482 * gnu/gcj/xlib/*.h: New files.
483 * gnu/awt/xlib/*.h: Likewise.
484 * classpath/lib/gnu/gcj/xlib: New class files.
485 * classpath/lib/gnu/awt/xlib: Likewise.
487 2007-01-10 Tom Tromey <tromey@redhat.com>
489 * HACKING: Various updates.
491 2007-01-10 Tom Tromey <tromey@redhat.com>
493 * java/lang/natDouble.cc (toString): Added parens.
494 * gnu/gcj/io/shs.h (PROTO): Define.
495 * link.cc (resolve_pool_entry): Added missing braces.
497 2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
500 * sysdep/ia64/locks.h (read_barrier): New.
501 (write_barrier): New.
503 2007-01-10 Gary Benson <gbenson@redhat.com>
505 * java/net/URL.java: Removed.
506 * sources.am, Makefile.in: Rebuilt.
508 2007-01-10 Matthias Klose <doko@debian.org>
510 * Makefile.am (install-exec-hook): Support $(DESTDIR).
511 * Makefile.in: Regenerated.
513 2007-01-05 Tom Tromey <tromey@redhat.com>
515 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
516 dummy.class in srcdir.
518 2007-01-03 Tom Tromey <tromey@redhat.com>
520 * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
523 2007-01-03 Tom Tromey <tromey@redhat.com>
525 * testsuite/*: Added many .jar and .h files.
526 * testsuite/libjava.special/special.exp
527 (gcj_special_try_compiler): New proc.
528 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
529 bytecompile source. Search for .jar files.
530 (gcj_loader_test_one): Don't look for MyLoader.java.
531 * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
532 bytecompile sources or build headers.
533 (gcj_jvmti_run): Look for .jar files.
534 * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
536 (gcj_jni_test_one): Don't bytecompile sources or build headers.
537 Set classpath when invoking gij.
538 (gcj_jni_invocation_test_one): Likewise.
539 * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
540 headers or bytecompile sources.
541 (gcj_cni_run): Use .jar files, not .java files.
542 * testsuite/libjava.lang/lang.exp: Compile .jar files.
544 2007-01-02 Tom Tromey <tromey@redhat.com>
546 * configure: Rebuilt.
547 * configure.ac: Check for gjar.
549 2007-01-02 Tom Tromey <tromey@redhat.com>
551 * testsuite/libjava.jacks/jacks.exp: Removed.
552 * testsuite/libjava.jacks/jacks.xfail: Removed.