1 2007-01-31 Tom Tromey <tromey@redhat.com>
4 * configure, include/config.h.in: Rebuilt.
5 * configure.ac: Check for magic_t in magic.h.
6 * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
8 2007-01-30 Tom Tromey <tromey@redhat.com>
10 * Makefile.in: Rebuilt.
11 * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
13 2007-01-30 Andreas Tobler <a.tobler@schweiz.org>
15 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
16 cast to print it right.
18 2007-01-29 Kaloian Doganov <kaloian@doganov.org>
21 * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
24 2007-01-29 Kyle Galloway <kgallowa@redhat.com>
26 * include/java-interp.h: Added _Jv_Frame class and its two
27 subclasses _Jv_InterpFrame and _Jv_NativeFrame. Also moved
28 _Jv_FrameType from java-stack.h.
29 * include/java-stack.h: Removed _Jv_FrameType.
30 * java/lang/Thread.java: Added frame member to hold new
31 composite frame stack.
32 * java/lang/Thread.h: Regenerated.
33 * java/lang/Thread.class: Rebuilt.
34 * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
36 * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
37 (_Jv_JVMTI_GetFrameCount): New method.
38 * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
40 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
41 * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
42 * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
43 * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
44 * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
47 2007-01-29 Tom Tromey <tromey@redhat.com>
49 * interpret.cc (run_debug): Remove comment.
56 (run_normal_debug): Likewise.
57 (run_synch_object_debug): Likewise.
58 (run_class_debug): Likewise.
59 (run_synch_class_debug): Likewise.
64 (NULLARRAYCHECK): Likewise.
65 (ARRAYBOUNDSCHECK): Likewise.
66 * interpret-run.cc (insn_target) <breakpoint>: Tidy.
68 2007-01-29 Tom Tromey <tromey@redhat.com>
70 * configure, Makefile.in: Rebuilt.
71 * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
72 * configure.ac (BASH_JAR): Removed conditional.
73 (JAR): Prefer the jar found by AC_CHECK_PROGS.
75 2007-01-29 Tom Tromey <tromey@redhat.com>
77 * Makefile.in: Rebuilt.
78 * Makefile.am (interpret.lo): New target. Add -fwrap to
81 2007-01-29 Keith Seitz <keiths@redhat.com>
83 * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
85 [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
86 gcj. All jvmti object types now are defined to be their
87 corresponding java classes.
88 * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
90 (_Jv_JVMTI_ResumeThread): Likewise.
91 (_Jv_JVMTI_InterruptThread): Likewise.
92 (_Jv_JVMTI_SetEventNotificationMode): Likewise.
93 * gnu/classpath/jdwp/natVMVirtualMachine.cc
94 (jdwpClassPrepareCB): Likewise.
95 (jdwpThreadEndCB): Likewise.
96 (jdwpThreadStartCB): Likewise.
97 (jdwpVMInitCB): Likewise.
99 2007-01-28 Michele Sandri <gpointorama@gmail.com>
101 * gnu/java/nio/channels/natFileChannelWin32.cc
103 (unlock): Implemented.
105 2007-01-27 Andreas Tobler <a.tobler@schweiz.org>
108 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
109 libgcj_flags to undefine 'sun' at compile time.
110 * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
112 (write_barrier): Likewise.
114 2007-01-27 Keith Seitz <keiths@redhat.com>
116 * gnu/classpath/jdwp/natVMVirtualMachine.cc
117 (getAllClassMethods): Move error handling to ...
118 (throw_jvmti_error): ... here.
119 (jdwpClassPrepareCB): New function.
120 (jdwpThreadEndCB): New function.
121 (jdwpThreadStartCB): New function.
122 (jdwpVMDeathCB): New function.
123 (jdwpVMInitCB): Define and enable callbacks for
124 ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
126 2007-01-27 Jakub Jelinek <jakub@redhat.com>
128 * Makefile.am (generic_header_files): Add $(inner_nat_headers).
129 * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
130 (MYGCJH): New variable.
131 (compile-tests): New goal.
132 * Makefile.in: Rebuilt.
133 * testsuite/Makefile.in: Rebuilt.
135 2007-01-26 Tom Tromey <tromey@redhat.com>
139 2007-01-25 Tom Tromey <tromey@redhat.com>
142 * gnu/gcj/convert/Convert.java (main): Correctly handle missing
143 input or output encodings. Removed unused local variables.
145 2007-01-25 Keith Seitz <keiths@redhat.com>
147 * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
148 * gnu/classpath/jdwp/natVMVirtualMachine.cc
149 (_Jv_GetJDWP_JVMTIEnv): New function.
150 * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
151 (getSignature): Implement.
152 (getModifiers): Implement.
154 2007-01-25 Andrew Haley <aph@redhat.com>
156 * configure, Makefile.in, include/config.h.in: Rebuilt.
157 * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
158 * configure.ac: Don't check for libmagic.
159 * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
160 p_magic_close, p_magic_buffer): New globals.
161 (init): Look up 'magic' functions.
162 (guessContentTypeFromBuffer): Updated.
164 2007-01-25 Keith Seitz <keiths@redhat.com>
166 * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
167 (_Jv_JVMTI_Interface): Define GetMethodName.
168 * testsuite/libjava.jvmti/getmethodname.java: New file.
169 * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
170 * testsuite/libjava.jvmti/getmethodname.out: New file.
172 2007-01-24 Kyle Galloway <kgallowa@redhat.com>
174 * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
175 * libjava/testsuite/libjava.jvmti/interp: New folder.
176 * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
178 2007-01-24 Keith Seitz <keiths@redhat.com>
180 * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
181 CLASS_PREPARE notification.
183 2007-01-24 Keith Seitz <keiths@redhat.com>
185 * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
186 gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
187 * interpret-run.cc: Implement insn_breakpoint.
189 2007-01-24 Keith Seitz <keiths@redhat.com>
191 * prims.cc (_Jv_RunMain): Send JVMTI event notifications
192 for VM_INIT and VM_DEATH instead of the JDWP notifications.
194 2007-01-24 Keith Seitz <keiths@redhat.com>
196 * gnu/classpath/jdwp/natVMVirtualMachine.cc
197 (getAllClassMethods): Implement.
199 2007-01-24 Andrew Haley <aph@redhat.com>
201 * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
202 (getClassContext) Add a barrier to prevent GetStackWalkerStack()
203 from being sibcalled.
205 2007-01-24 Andrew Haley <aph@redhat.com>
207 * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
208 * sources.am: Rebuild.
210 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
212 * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
213 _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
215 2007-01-23 H.J. Lu <hongjiu.lu@intel.com>
218 * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
219 * Makefile.in: Regenerated.
221 2007-01-22 Keith Seitz <keiths@redhat.com>
223 * gnu/classpath/jdwp/natVMVirtualMachine.cc
224 (getClassMethod): Implement.
226 2007-01-22 Keith Seitz <keiths@redhat.com>
228 * java/lang/Class.h (_Jv_GetClassStatus): Declare.
229 * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
230 * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
231 (_Jv_JVMTI_Interface): Define GetClassStatus.
233 2007-01-22 Tom Tromey <tromey@redhat.com>
235 * configure: Rebuilt.
236 * configure.ac (GCJ): Reverted patch of 2006-12-20.
238 2007-01-22 Tom Tromey <tromey@redhat.com>
241 * testsuite/libjava.jni/pr29812.java: New file.
242 * testsuite/libjava.jni/pr29812_injar.java: New file.
243 * testsuite/libjava.jni/pr29812_injar.jar: New file.
244 * testsuite/libjava.jni/pr29812.out: New file.
245 * testsuite/libjava.jni/pr29812_injar.c: New file.
246 * testsuite/libjava.jni/pr29812_injar.h: New file.
247 * testsuite/libjava.jni/pr29812.jar: New file.
248 * testsuite/libjava.jni/pr29812.c: New file.
249 * testsuite/libjava.jni/pr29812.h: New file.
250 * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
252 (gcj_jni_invocation_test_one): Use it.
253 (gcj_jni_pr29812): New proc.
254 (gcj_jni_run): Use it.
255 * java/lang/natRuntime.cc (_load): Push a new system frame before
257 * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
258 (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
259 * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
260 <allocated_p>: Now bool.
262 (_Jv_JNI_EnsureLocalCapacity): Updated.
263 (_Jv_JNI_NewLocalRef): Likewise.
264 (_Jv_JNI_NewLocalRef): Likewise.
265 (_Jv_JNI_PopLocalFrame): Likewise.
266 (_Jv_JNI_FindClass): Likewise.
267 (_Jv_GetJNIEnvNewFrame): Likewise.
268 (_Jv_JNI_AttachCurrentThread): Likewise.
269 (_Jv_GetJNIEnvNewFrameWithLoader): New function.
270 (_Jv_GetJNIEnvNewFrame): Use it.
271 * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
273 2007-01-22 Tom Tromey <tromey@redhat.com>
275 * libtool-version: Bump current to 9.
277 2007-01-22 Andrew Haley <aph@redhat.com>
279 * sysdep/alpha/locks.h (write_barrier): New.
281 2007-01-21 Matthias Klose <doko@debian.org>
283 * Makefile.am (install-exec-hook): Use transformed name.
284 * Makefile.in: Regenerate.
286 2007-01-19 Keith Seitz <keiths@redhat.com>
288 * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
289 in methods and reformat.
291 * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
294 2007-01-18 Keith Seitz <keiths@redhat.com>
296 From Macro Trudel <mtrudel@gmx.ch>:
297 * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
300 2007-01-18 Marco Trudel <mtrudel@gmx.ch>
302 * jni.cc (_Jv_JNI_FindClass): Initialize class.
303 * testsuite/libjava.jni/findclass2.jar: New file.
304 * testsuite/libjava.jni/findclass2.h: New file.
305 * testsuite/libjava.jni/findclass2.java: New file
306 * testsuite/libjava.jni/findclass2.c: New file.
307 * testsuite/libjava.jni/findclass2.out: New file.
309 2007-01-18 Tom Tromey <tromey@redhat.com>
311 * configure: Rebuilt.
312 * configure.ac: Use multi_basedir instead of libgcj_basedir.
314 2007-01-18 Gary Benson <gbenson@redhat.com>
316 * gnu/java/nio/natVMPipeEcos.cc:
317 Renamed from gnu/java/nio/natPipeImplEcos.cc.
318 * gnu/java/nio/natVMPipePosix.cc:
319 Renamed from gnu/java/nio/natPipeImplPosix.cc.
320 * gnu/java/nio/natVMPipeWin32.cc:
321 Renamed from gnu/java/nio/natPipeImplWin32.cc.
322 * gnu/java/nio/natVMSelectorEcos.cc:
323 Renamed from gnu/java/nio/natSelectorImplEcos.cc.
324 * gnu/java/nio/natVMSelectorPosix.cc:
325 Renamed from gnu/java/nio/natSelectorImplPosix.cc.
326 * gnu/java/nio/natVMSelectorWin32.cc:
327 Renamed from gnu/java/nio/natSelectorImplWin32.cc.
328 * java/io/natVMObjectInputStream.cc:
329 Renamed from java/io/natObjectInputStream.cc.
330 * java/lang/natVMDouble.cc:
331 Renamed from java/lang/natDouble.cc.
332 * java/lang/natVMFloat.cc:
333 Renamed from java/lang/natFloat.cc.
334 * Makefile.am, configure.ac: Reflect the above.
335 * Makefile.in, configure: Rebuilt.
337 2007-01-17 Andrew Haley <aph@redhat.com>
339 * Makefile.in: Rebuilt.
340 * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
342 2007-01-17 Keith Seitz <keiths@redhat.com>
344 * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
345 (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
347 2007-01-16 Jack Howarth <howarth@bromo.med.uc.edu>
349 * configure.ac: Use multi.m4 from aclocal rather than custom
350 code. Use multi_basedir instead libgcj_basedir. Test for
351 /proc/self/exe when not cross-compiling.
352 * aclocal.m4: Regenerate.
353 * configure: Regenerate.
354 * Makefile.in: Regenerate.
356 2007-01-17 Gary Benson <gbenson@redhat.com>
358 * java/nio/natVMDirectByteBufferImpl.cc:
359 Renamed from java/nio/natDirectByteBufferImpl.cc.
360 * Makefile.am: Reflect the above.
361 * Makefile.in: Rebuilt.
363 2007-01-17 Marco Trudel <mtrudel@gmx.ch>
365 * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL.
366 Fixed indentation. Removed unused variable.
368 2007-01-16 Tom Tromey <tromey@redhat.com>
370 * java/lang/natThread.cc (finalize_native): Remove cast.
371 (_Jv_GetCurrentJNIEnv): Likewise.
372 * include/jvm.h (struct natThread) <jni_env>: Declare as
375 2007-01-16 Keith Seitz <keiths@redhat.com>
377 * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
378 %#llx instead of %d for new_value.
379 * testsuite/libjava.jvmti/events.out: Update expected output.
380 * testsuite/libjava.jvmti/events.jar: Regenerate.
382 2007-01-16 Keith Seitz <keiths@redhat.com>
384 * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
386 (ENABLE_EVENT): New macro.
387 (initialize): Define and enable JVMTI VM_INIT callback.
388 (jdwpVMInitCB): New function.
390 2007-01-16 Kyle Galloway <kgallowa@redhat.com>
392 * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
393 * testsuite/libjava.jvmti/getallthreads.java: New test.
394 * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
395 * testsuite/libjava.jvmti/getallthreads.out: Ditto.
396 * testsuite/libjava.jvmti/getallthreads.h: Ditto.
397 * testsuite/libjava.jvmti/getallthreads.jar: Ditto.
399 2007-01-15 Keith Seitz <keiths@redhat.com>
401 * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
402 java.lang.StringBuilder instead of java.lang.StringBuffer.
403 (resumeThread): Likewise.
405 2007-01-15 Gary Benson <gbenson@redhat.com>
407 * java/nio/MappedByteBuffer.java: Removed.
408 * sources.am, Makefile.in: Rebuilt.
410 2007-01-15 Gary Benson <gbenson@redhat.com>
412 * java/net/URLClassLoader.java: Removed.
413 * gnu/java/net/loader/Load_gcjlib.java: New file.
414 * gnu/gcj/runtime/BootClassLoader.java: Ensure core
415 URL handler is present in static executables.
416 * sources.am, Makefile.in: Rebuilt.
418 2007-01-14 H.J. Lu <hongjiu.lu@intel.com>
420 * Makefile.am (libgcj_la_LDFLAGS): Add
421 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
422 (libgcj_tools_la_LDFLAGS): Likewise.
423 (libgcj_bc_la_LDFLAGS): Likewise.
424 * Makefile.in: Regenerated.
426 * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC. Set
427 LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS. Set
428 libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
429 Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
430 * configure: Regenerated.
431 * aclocal.m4: Likewise.
432 * gcj/Makefile.in: Likewise.
433 * include/Makefile.in: Likewise.
434 * testsuite/Makefile.in: Likewise.
436 2007-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
438 * sysdep/sh/locks.h (read_barrier): New.
439 (write_barrier): Likewise.
441 2007-01-12 Andrew Haley <aph@redhat.com>
443 * include/i386-signal.h: Rewrite to use rt_sigaction.
445 2007-01-11 Andrew Haley <aph@redhat.com>
447 * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
449 * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
452 2007-01-10 Tom Tromey <tromey@redhat.com>
454 * gnu/gcj/xlib/*.h: New files.
455 * gnu/awt/xlib/*.h: Likewise.
456 * classpath/lib/gnu/gcj/xlib: New class files.
457 * classpath/lib/gnu/awt/xlib: Likewise.
459 2007-01-10 Tom Tromey <tromey@redhat.com>
461 * HACKING: Various updates.
463 2007-01-10 Tom Tromey <tromey@redhat.com>
465 * java/lang/natDouble.cc (toString): Added parens.
466 * gnu/gcj/io/shs.h (PROTO): Define.
467 * link.cc (resolve_pool_entry): Added missing braces.
469 2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
472 * sysdep/ia64/locks.h (read_barrier): New.
473 (write_barrier): New.
475 2007-01-10 Gary Benson <gbenson@redhat.com>
477 * java/net/URL.java: Removed.
478 * sources.am, Makefile.in: Rebuilt.
480 2007-01-10 Matthias Klose <doko@debian.org>
482 * Makefile.am (install-exec-hook): Support $(DESTDIR).
483 * Makefile.in: Regenerated.
485 2007-01-05 Tom Tromey <tromey@redhat.com>
487 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
488 dummy.class in srcdir.
490 2007-01-03 Tom Tromey <tromey@redhat.com>
492 * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
495 2007-01-03 Tom Tromey <tromey@redhat.com>
497 * testsuite/*: Added many .jar and .h files.
498 * testsuite/libjava.special/special.exp
499 (gcj_special_try_compiler): New proc.
500 * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
501 bytecompile source. Search for .jar files.
502 (gcj_loader_test_one): Don't look for MyLoader.java.
503 * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
504 bytecompile sources or build headers.
505 (gcj_jvmti_run): Look for .jar files.
506 * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
508 (gcj_jni_test_one): Don't bytecompile sources or build headers.
509 Set classpath when invoking gij.
510 (gcj_jni_invocation_test_one): Likewise.
511 * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
512 headers or bytecompile sources.
513 (gcj_cni_run): Use .jar files, not .java files.
514 * testsuite/libjava.lang/lang.exp: Compile .jar files.
516 2007-01-02 Tom Tromey <tromey@redhat.com>
518 * configure: Rebuilt.
519 * configure.ac: Check for gjar.
521 2007-01-02 Tom Tromey <tromey@redhat.com>
523 * testsuite/libjava.jacks/jacks.exp: Removed.
524 * testsuite/libjava.jacks/jacks.xfail: Removed.