OSDN Git Service

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