1 2007-01-31 Tom Tromey <tromey@redhat.com>
3 * configure, Makefile.in: Rebuilt.
4 * configure.ac (JAR): Check for -@ feature.
5 * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
7 2007-01-31 Tom Tromey <tromey@redhat.com>
10 * configure, include/config.h.in: Rebuilt.
11 * configure.ac: Check for magic_t in magic.h.
12 * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
14 2007-01-30 Tom Tromey <tromey@redhat.com>
16 * Makefile.in: Rebuilt.
17 * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
19 2007-01-30 Andreas Tobler <a.tobler@schweiz.org>
21 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
22 cast to print it right.
24 2007-01-29 Kaloian Doganov <kaloian@doganov.org>
27 * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
30 2007-01-29 Kyle Galloway <kgallowa@redhat.com>
32 * include/java-interp.h: Added _Jv_Frame class and its two
33 subclasses _Jv_InterpFrame and _Jv_NativeFrame. Also moved
34 _Jv_FrameType from java-stack.h.
35 * include/java-stack.h: Removed _Jv_FrameType.
36 * java/lang/Thread.java: Added frame member to hold new
37 composite frame stack.
38 * java/lang/Thread.h: Regenerated.
39 * java/lang/Thread.class: Rebuilt.
40 * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
42 * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
43 (_Jv_JVMTI_GetFrameCount): New method.
44 * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
46 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
47 * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
48 * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
49 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
50 * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
53 2007-01-29 Tom Tromey <tromey@redhat.com>
55 * interpret.cc (run_debug): Remove comment.
62 (run_normal_debug): Likewise.
63 (run_synch_object_debug): Likewise.
64 (run_class_debug): Likewise.
65 (run_synch_class_debug): Likewise.
70 (NULLARRAYCHECK): Likewise.
71 (ARRAYBOUNDSCHECK): Likewise.
72 * interpret-run.cc (insn_target) <breakpoint>: Tidy.
74 2007-01-29 Tom Tromey <tromey@redhat.com>
76 * configure, Makefile.in: Rebuilt.
77 * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
78 * configure.ac (BASH_JAR): Removed conditional.
79 (JAR): Prefer the jar found by AC_CHECK_PROGS.
81 2007-01-29 Tom Tromey <tromey@redhat.com>
83 * Makefile.in: Rebuilt.
84 * Makefile.am (interpret.lo): New target. Add -fwrap to
87 2007-01-29 Keith Seitz <keiths@redhat.com>
89 * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
91 [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
92 gcj. All jvmti object types now are defined to be their
93 corresponding java classes.
94 * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
96 (_Jv_JVMTI_ResumeThread): Likewise.
97 (_Jv_JVMTI_InterruptThread): Likewise.
98 (_Jv_JVMTI_SetEventNotificationMode): Likewise.
99 * gnu/classpath/jdwp/natVMVirtualMachine.cc
100 (jdwpClassPrepareCB): Likewise.
101 (jdwpThreadEndCB): Likewise.
102 (jdwpThreadStartCB): Likewise.
103 (jdwpVMInitCB): Likewise.
105 2007-01-28 Michele Sandri <gpointorama@gmail.com>
107 * gnu/java/nio/channels/natFileChannelWin32.cc
109 (unlock): Implemented.
111 2007-01-27 Andreas Tobler <a.tobler@schweiz.org>
114 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
115 libgcj_flags to undefine 'sun' at compile time.
116 * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
118 (write_barrier): Likewise.
120 2007-01-27 Keith Seitz <keiths@redhat.com>
122 * gnu/classpath/jdwp/natVMVirtualMachine.cc
123 (getAllClassMethods): Move error handling to ...
124 (throw_jvmti_error): ... here.
125 (jdwpClassPrepareCB): New function.
126 (jdwpThreadEndCB): New function.
127 (jdwpThreadStartCB): New function.
128 (jdwpVMDeathCB): New function.
129 (jdwpVMInitCB): Define and enable callbacks for
130 ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
132 2007-01-27 Jakub Jelinek <jakub@redhat.com>
134 * Makefile.am (generic_header_files): Add $(inner_nat_headers).
135 * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
136 (MYGCJH): New variable.
137 (compile-tests): New goal.
138 * Makefile.in: Rebuilt.
139 * testsuite/Makefile.in: Rebuilt.
141 2007-01-26 Tom Tromey <tromey@redhat.com>
145 2007-01-25 Tom Tromey <tromey@redhat.com>
148 * gnu/gcj/convert/Convert.java (main): Correctly handle missing
149 input or output encodings. Removed unused local variables.
151 2007-01-25 Keith Seitz <keiths@redhat.com>
153 * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
154 * gnu/classpath/jdwp/natVMVirtualMachine.cc
155 (_Jv_GetJDWP_JVMTIEnv): New function.
156 * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
157 (getSignature): Implement.
158 (getModifiers): Implement.
160 2007-01-25 Andrew Haley <aph@redhat.com>
162 * configure, Makefile.in, include/config.h.in: Rebuilt.
163 * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
164 * configure.ac: Don't check for libmagic.
165 * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
166 p_magic_close, p_magic_buffer): New globals.
167 (init): Look up 'magic' functions.
168 (guessContentTypeFromBuffer): Updated.
170 2007-01-25 Keith Seitz <keiths@redhat.com>
172 * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
173 (_Jv_JVMTI_Interface): Define GetMethodName.
174 * testsuite/libjava.jvmti/getmethodname.java: New file.
175 * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
176 * testsuite/libjava.jvmti/getmethodname.out: New file.
178 2007-01-24 Kyle Galloway <kgallowa@redhat.com>
180 * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
181 * libjava/testsuite/libjava.jvmti/interp: New folder.
182 * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
184 2007-01-24 Keith Seitz <keiths@redhat.com>
186 * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
187 CLASS_PREPARE notification.
189 2007-01-24 Keith Seitz <keiths@redhat.com>
191 * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
192 gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
193 * interpret-run.cc: Implement insn_breakpoint.
195 2007-01-24 Keith Seitz <keiths@redhat.com>
197 * prims.cc (_Jv_RunMain): Send JVMTI event notifications
198 for VM_INIT and VM_DEATH instead of the JDWP notifications.
200 2007-01-24 Keith Seitz <keiths@redhat.com>
202 * gnu/classpath/jdwp/natVMVirtualMachine.cc
203 (getAllClassMethods): Implement.
205 2007-01-24 Andrew Haley <aph@redhat.com>
207 * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
208 (getClassContext) Add a barrier to prevent GetStackWalkerStack()
209 from being sibcalled.
211 2007-01-24 Andrew Haley <aph@redhat.com>
213 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
214 * sources.am: Rebuild.
216 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
218 * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
219 _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
221 2007-01-23 H.J. Lu <hongjiu.lu@intel.com>
224 * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
225 * Makefile.in: Regenerated.
227 2007-01-22 Keith Seitz <keiths@redhat.com>
229 * gnu/classpath/jdwp/natVMVirtualMachine.cc
230 (getClassMethod): Implement.
232 2007-01-22 Keith Seitz <keiths@redhat.com>
234 * java/lang/Class.h (_Jv_GetClassStatus): Declare.
235 * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
236 * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
237 (_Jv_JVMTI_Interface): Define GetClassStatus.
239 2007-01-22 Tom Tromey <tromey@redhat.com>
241 * configure: Rebuilt.
242 * configure.ac (GCJ): Reverted patch of 2006-12-20.
244 2007-01-22 Tom Tromey <tromey@redhat.com>
247 * testsuite/libjava.jni/pr29812.java: New file.
248 * testsuite/libjava.jni/pr29812_injar.java: New file.
249 * testsuite/libjava.jni/pr29812_injar.jar: New file.
250 * testsuite/libjava.jni/pr29812.out: New file.
251 * testsuite/libjava.jni/pr29812_injar.c: New file.
252 * testsuite/libjava.jni/pr29812_injar.h: New file.
253 * testsuite/libjava.jni/pr29812.jar: New file.
254 * testsuite/libjava.jni/pr29812.c: New file.
255 * testsuite/libjava.jni/pr29812.h: New file.
256 * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
258 (gcj_jni_invocation_test_one): Use it.
259 (gcj_jni_pr29812): New proc.
260 (gcj_jni_run): Use it.
261 * java/lang/natRuntime.cc (_load): Push a new system frame before
263 * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
264 (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
265 * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
266 <allocated_p>: Now bool.
268 (_Jv_JNI_EnsureLocalCapacity): Updated.
269 (_Jv_JNI_NewLocalRef): Likewise.
270 (_Jv_JNI_NewLocalRef): Likewise.
271 (_Jv_JNI_PopLocalFrame): Likewise.
272 (_Jv_JNI_FindClass): Likewise.
273 (_Jv_GetJNIEnvNewFrame): Likewise.
274 (_Jv_JNI_AttachCurrentThread): Likewise.
275 (_Jv_GetJNIEnvNewFrameWithLoader): New function.
276 (_Jv_GetJNIEnvNewFrame): Use it.
277 * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
279 2007-01-22 Tom Tromey <tromey@redhat.com>
281 * libtool-version: Bump current to 9.
283 2007-01-22 Andrew Haley <aph@redhat.com>
285 * sysdep/alpha/locks.h (write_barrier): New.
287 2007-01-21 Matthias Klose <doko@debian.org>
289 * Makefile.am (install-exec-hook): Use transformed name.
290 * Makefile.in: Regenerate.
292 2007-01-19 Keith Seitz <keiths@redhat.com>
294 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
295 in methods and reformat.
297 * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
300 2007-01-18 Keith Seitz <keiths@redhat.com>
302 From Macro Trudel <mtrudel@gmx.ch>:
303 * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
306 2007-01-18 Marco Trudel <mtrudel@gmx.ch>
308 * jni.cc (_Jv_JNI_FindClass): Initialize class.
309 * testsuite/libjava.jni/findclass2.jar: New file.
310 * testsuite/libjava.jni/findclass2.h: New file.
311 * testsuite/libjava.jni/findclass2.java: New file
312 * testsuite/libjava.jni/findclass2.c: New file.
313 * testsuite/libjava.jni/findclass2.out: New file.
315 2007-01-18 Tom Tromey <tromey@redhat.com>
317 * configure: Rebuilt.
318 * configure.ac: Use multi_basedir instead of libgcj_basedir.
320 2007-01-18 Gary Benson <gbenson@redhat.com>
322 * gnu/java/nio/natVMPipeEcos.cc:
323 Renamed from gnu/java/nio/natPipeImplEcos.cc.
324 * gnu/java/nio/natVMPipePosix.cc:
325 Renamed from gnu/java/nio/natPipeImplPosix.cc.
326 * gnu/java/nio/natVMPipeWin32.cc:
327 Renamed from gnu/java/nio/natPipeImplWin32.cc.
328 * gnu/java/nio/natVMSelectorEcos.cc:
329 Renamed from gnu/java/nio/natSelectorImplEcos.cc.
330 * gnu/java/nio/natVMSelectorPosix.cc:
331 Renamed from gnu/java/nio/natSelectorImplPosix.cc.
332 * gnu/java/nio/natVMSelectorWin32.cc:
333 Renamed from gnu/java/nio/natSelectorImplWin32.cc.
334 * java/io/natVMObjectInputStream.cc:
335 Renamed from java/io/natObjectInputStream.cc.
336 * java/lang/natVMDouble.cc:
337 Renamed from java/lang/natDouble.cc.
338 * java/lang/natVMFloat.cc:
339 Renamed from java/lang/natFloat.cc.
340 * Makefile.am, configure.ac: Reflect the above.
341 * Makefile.in, configure: Rebuilt.
343 2007-01-17 Andrew Haley <aph@redhat.com>
345 * Makefile.in: Rebuilt.
346 * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
348 2007-01-17 Keith Seitz <keiths@redhat.com>
350 * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
351 (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
353 2007-01-16 Jack Howarth <howarth@bromo.med.uc.edu>
355 * configure.ac: Use multi.m4 from aclocal rather than custom
356 code. Use multi_basedir instead libgcj_basedir. Test for
357 /proc/self/exe when not cross-compiling.
358 * aclocal.m4: Regenerate.
359 * configure: Regenerate.
360 * Makefile.in: Regenerate.
362 2007-01-17 Gary Benson <gbenson@redhat.com>
364 * java/nio/natVMDirectByteBufferImpl.cc:
365 Renamed from java/nio/natDirectByteBufferImpl.cc.
366 * Makefile.am: Reflect the above.
367 * Makefile.in: Rebuilt.
369 2007-01-17 Marco Trudel <mtrudel@gmx.ch>
371 * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL.
372 Fixed indentation. Removed unused variable.
374 2007-01-16 Tom Tromey <tromey@redhat.com>
376 * java/lang/natThread.cc (finalize_native): Remove cast.
377 (_Jv_GetCurrentJNIEnv): Likewise.
378 * include/jvm.h (struct natThread) <jni_env>: Declare as
381 2007-01-16 Keith Seitz <keiths@redhat.com>
383 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
384 %#llx instead of %d for new_value.
385 * testsuite/libjava.jvmti/events.out: Update expected output.
386 * testsuite/libjava.jvmti/events.jar: Regenerate.
388 2007-01-16 Keith Seitz <keiths@redhat.com>
390 * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
392 (ENABLE_EVENT): New macro.
393 (initialize): Define and enable JVMTI VM_INIT callback.
394 (jdwpVMInitCB): New function.
396 2007-01-16 Kyle Galloway <kgallowa@redhat.com>
398 * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
399 * testsuite/libjava.jvmti/getallthreads.java: New test.
400 * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
401 * testsuite/libjava.jvmti/getallthreads.out: Ditto.
402 * testsuite/libjava.jvmti/getallthreads.h: Ditto.
403 * testsuite/libjava.jvmti/getallthreads.jar: Ditto.
405 2007-01-15 Keith Seitz <keiths@redhat.com>
407 * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
408 java.lang.StringBuilder instead of java.lang.StringBuffer.
409 (resumeThread): Likewise.
411 2007-01-15 Gary Benson <gbenson@redhat.com>
413 * java/nio/MappedByteBuffer.java: Removed.
414 * sources.am, Makefile.in: Rebuilt.
416 2007-01-15 Gary Benson <gbenson@redhat.com>
418 * java/net/URLClassLoader.java: Removed.
419 * gnu/java/net/loader/Load_gcjlib.java: New file.
420 * gnu/gcj/runtime/BootClassLoader.java: Ensure core
421 URL handler is present in static executables.
422 * sources.am, Makefile.in: Rebuilt.
424 2007-01-14 H.J. Lu <hongjiu.lu@intel.com>
426 * Makefile.am (libgcj_la_LDFLAGS): Add
427 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
428 (libgcj_tools_la_LDFLAGS): Likewise.
429 (libgcj_bc_la_LDFLAGS): Likewise.
430 * Makefile.in: Regenerated.
432 * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC. Set
433 LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS. Set
434 libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
435 Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
436 * configure: Regenerated.
437 * aclocal.m4: Likewise.
438 * gcj/Makefile.in: Likewise.
439 * include/Makefile.in: Likewise.
440 * testsuite/Makefile.in: Likewise.
442 2007-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
444 * sysdep/sh/locks.h (read_barrier): New.
445 (write_barrier): Likewise.
447 2007-01-12 Andrew Haley <aph@redhat.com>
449 * include/i386-signal.h: Rewrite to use rt_sigaction.
451 2007-01-11 Andrew Haley <aph@redhat.com>
453 * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
455 * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
458 2007-01-10 Tom Tromey <tromey@redhat.com>
460 * gnu/gcj/xlib/*.h: New files.
461 * gnu/awt/xlib/*.h: Likewise.
462 * classpath/lib/gnu/gcj/xlib: New class files.
463 * classpath/lib/gnu/awt/xlib: Likewise.
465 2007-01-10 Tom Tromey <tromey@redhat.com>
467 * HACKING: Various updates.
469 2007-01-10 Tom Tromey <tromey@redhat.com>
471 * java/lang/natDouble.cc (toString): Added parens.
472 * gnu/gcj/io/shs.h (PROTO): Define.
473 * link.cc (resolve_pool_entry): Added missing braces.
475 2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
478 * sysdep/ia64/locks.h (read_barrier): New.
479 (write_barrier): New.
481 2007-01-10 Gary Benson <gbenson@redhat.com>
483 * java/net/URL.java: Removed.
484 * sources.am, Makefile.in: Rebuilt.
486 2007-01-10 Matthias Klose <doko@debian.org>
488 * Makefile.am (install-exec-hook): Support $(DESTDIR).
489 * Makefile.in: Regenerated.
491 2007-01-05 Tom Tromey <tromey@redhat.com>
493 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
494 dummy.class in srcdir.
496 2007-01-03 Tom Tromey <tromey@redhat.com>
498 * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
501 2007-01-03 Tom Tromey <tromey@redhat.com>
503 * testsuite/*: Added many .jar and .h files.
504 * testsuite/libjava.special/special.exp
505 (gcj_special_try_compiler): New proc.
506 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
507 bytecompile source. Search for .jar files.
508 (gcj_loader_test_one): Don't look for MyLoader.java.
509 * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
510 bytecompile sources or build headers.
511 (gcj_jvmti_run): Look for .jar files.
512 * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
514 (gcj_jni_test_one): Don't bytecompile sources or build headers.
515 Set classpath when invoking gij.
516 (gcj_jni_invocation_test_one): Likewise.
517 * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
518 headers or bytecompile sources.
519 (gcj_cni_run): Use .jar files, not .java files.
520 * testsuite/libjava.lang/lang.exp: Compile .jar files.
522 2007-01-02 Tom Tromey <tromey@redhat.com>
524 * configure: Rebuilt.
525 * configure.ac: Check for gjar.
527 2007-01-02 Tom Tromey <tromey@redhat.com>
529 * testsuite/libjava.jacks/jacks.exp: Removed.
530 * testsuite/libjava.jacks/jacks.xfail: Removed.