OSDN Git Service

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