OSDN Git Service

* link.cc (_Jv_Linker::wait_for_state): Add JVMTI
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2007-01-24  Keith Seitz  <keiths@redhat.com>
2
3         * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
4         CLASS_PREPARE notification.
5
6 2007-01-24  Keith Seitz  <keiths@redhat.com>
7
8         * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
9         gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
10         * interpret-run.cc: Implement insn_breakpoint.
11
12 2007-01-24  Keith Seitz  <keiths@redhat.com>
13
14         * prims.cc (_Jv_RunMain): Send JVMTI event notifications
15         for VM_INIT and VM_DEATH instead of the JDWP notifications.
16
17 2007-01-24  Keith Seitz  <keiths@redhat.com>
18
19         * gnu/classpath/jdwp/natVMVirtualMachine.cc
20         (getAllClassMethods): Implement.
21
22 2007-01-24  Andrew Haley  <aph@redhat.com>
23
24         * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
25         (getClassContext) Add a barrier to prevent GetStackWalkerStack()
26         from being sibcalled.
27
28 2007-01-24  Andrew Haley  <aph@redhat.com>
29
30         * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
31         * sources.am: Rebuild.
32
33 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
34
35         * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
36         _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
37
38 2007-01-23  H.J. Lu  <hongjiu.lu@intel.com>
39
40         PR libgcj/30550
41         * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
42         * Makefile.in: Regenerated.
43
44 2007-01-22  Keith Seitz  <keiths@redhat.com>
45
46         * gnu/classpath/jdwp/natVMVirtualMachine.cc
47         (getClassMethod): Implement.
48
49 2007-01-22  Keith  Seitz  <keiths@redhat.com>
50
51         * java/lang/Class.h (_Jv_GetClassStatus): Declare.
52         * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
53         * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
54         (_Jv_JVMTI_Interface): Define GetClassStatus.
55
56 2007-01-22  Tom Tromey  <tromey@redhat.com>
57
58         * configure: Rebuilt.
59         * configure.ac (GCJ): Reverted patch of 2006-12-20.
60
61 2007-01-22  Tom Tromey  <tromey@redhat.com>
62
63         PR java/29812:
64         * testsuite/libjava.jni/pr29812.java: New file.
65         * testsuite/libjava.jni/pr29812_injar.java: New file.
66         * testsuite/libjava.jni/pr29812_injar.jar: New file.
67         * testsuite/libjava.jni/pr29812.out: New file.
68         * testsuite/libjava.jni/pr29812_injar.c: New file.
69         * testsuite/libjava.jni/pr29812_injar.h: New file.
70         * testsuite/libjava.jni/pr29812.jar: New file.
71         * testsuite/libjava.jni/pr29812.c: New file.
72         * testsuite/libjava.jni/pr29812.h: New file.
73         * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
74         New proc.
75         (gcj_jni_invocation_test_one): Use it.
76         (gcj_jni_pr29812): New proc.
77         (gcj_jni_run): Use it.
78         * java/lang/natRuntime.cc (_load): Push a new system frame before
79         calling JNI_OnLoad.
80         * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
81         (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
82         * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
83         <allocated_p>: Now bool.
84         <loader>: New field.
85         (_Jv_JNI_EnsureLocalCapacity): Updated.
86         (_Jv_JNI_NewLocalRef): Likewise.
87         (_Jv_JNI_NewLocalRef): Likewise.
88         (_Jv_JNI_PopLocalFrame): Likewise.
89         (_Jv_JNI_FindClass): Likewise.
90         (_Jv_GetJNIEnvNewFrame): Likewise.
91         (_Jv_JNI_AttachCurrentThread): Likewise.
92         (_Jv_GetJNIEnvNewFrameWithLoader): New function.
93         (_Jv_GetJNIEnvNewFrame): Use it.
94         * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
95
96 2007-01-22  Tom Tromey  <tromey@redhat.com>
97
98         * libtool-version: Bump current to 9.
99
100 2007-01-22  Andrew Haley  <aph@redhat.com>
101
102         * sysdep/alpha/locks.h (write_barrier): New.
103
104 2007-01-21  Matthias Klose  <doko@debian.org>
105
106         * Makefile.am (install-exec-hook): Use transformed name.
107         * Makefile.in: Regenerate.
108
109 2007-01-19  Keith Seitz  <keiths@redhat.com>
110
111         * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
112         in methods and reformat.
113
114         * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
115         MAYBE_UNUSED.
116
117 2007-01-18  Keith Seitz  <keiths@redhat.com>
118
119         From Macro Trudel <mtrudel@gmx.ch>:
120         * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
121         Use JNICALL.
122
123 2007-01-18  Marco Trudel  <mtrudel@gmx.ch>
124
125         * jni.cc (_Jv_JNI_FindClass): Initialize class.
126         * testsuite/libjava.jni/findclass2.jar: New file.
127         * testsuite/libjava.jni/findclass2.h: New file.
128         * testsuite/libjava.jni/findclass2.java: New file
129         * testsuite/libjava.jni/findclass2.c: New file.
130         * testsuite/libjava.jni/findclass2.out: New file.
131
132 2007-01-18  Tom Tromey  <tromey@redhat.com>
133
134         * configure: Rebuilt.
135         * configure.ac: Use multi_basedir instead of libgcj_basedir.
136
137 2007-01-18  Gary Benson  <gbenson@redhat.com>
138
139         * gnu/java/nio/natVMPipeEcos.cc:
140         Renamed from gnu/java/nio/natPipeImplEcos.cc.
141         * gnu/java/nio/natVMPipePosix.cc:
142         Renamed from gnu/java/nio/natPipeImplPosix.cc.
143         * gnu/java/nio/natVMPipeWin32.cc:
144         Renamed from gnu/java/nio/natPipeImplWin32.cc.
145         * gnu/java/nio/natVMSelectorEcos.cc:
146         Renamed from gnu/java/nio/natSelectorImplEcos.cc.
147         * gnu/java/nio/natVMSelectorPosix.cc:
148         Renamed from gnu/java/nio/natSelectorImplPosix.cc.
149         * gnu/java/nio/natVMSelectorWin32.cc:
150         Renamed from gnu/java/nio/natSelectorImplWin32.cc.
151         * java/io/natVMObjectInputStream.cc:
152         Renamed from java/io/natObjectInputStream.cc.
153         * java/lang/natVMDouble.cc:
154         Renamed from java/lang/natDouble.cc.
155         * java/lang/natVMFloat.cc:
156         Renamed from java/lang/natFloat.cc.     
157         * Makefile.am, configure.ac: Reflect the above.
158         * Makefile.in, configure: Rebuilt.
159
160 2007-01-17  Andrew Haley  <aph@redhat.com>
161
162         * Makefile.in: Rebuilt.
163         * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
164
165 2007-01-17  Keith Seitz  <keiths@redhat.com>
166
167         * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
168         (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
169
170 2007-01-16  Jack Howarth  <howarth@bromo.med.uc.edu>
171
172         * configure.ac: Use multi.m4 from aclocal rather than custom
173         code.  Use multi_basedir instead libgcj_basedir.  Test for
174         /proc/self/exe when not cross-compiling.
175         * aclocal.m4: Regenerate.
176         * configure: Regenerate.
177         * Makefile.in: Regenerate.
178
179 2007-01-17  Gary Benson  <gbenson@redhat.com>
180
181         * java/nio/natVMDirectByteBufferImpl.cc:
182         Renamed from java/nio/natDirectByteBufferImpl.cc.
183         * Makefile.am: Reflect the above.
184         * Makefile.in: Rebuilt.
185         
186 2007-01-17  Marco Trudel  <mtrudel@gmx.ch>
187
188         * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static.  Use JNICALL.
189         Fixed indentation.  Removed unused variable.
190
191 2007-01-16  Tom Tromey  <tromey@redhat.com>
192
193         * java/lang/natThread.cc (finalize_native): Remove cast.
194         (_Jv_GetCurrentJNIEnv): Likewise.
195         * include/jvm.h (struct natThread) <jni_env>: Declare as
196         _Jv_JNIEnv*.
197
198 2007-01-16  Keith Seitz  <keiths@redhat.com>
199
200         * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
201         %#llx instead of %d for new_value.
202         * testsuite/libjava.jvmti/events.out: Update expected output.
203         * testsuite/libjava.jvmti/events.jar: Regenerate.
204
205 2007-01-16  Keith Seitz  <keiths@redhat.com>
206
207         * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
208         New macro.
209         (ENABLE_EVENT): New macro.
210         (initialize): Define and enable JVMTI VM_INIT callback.
211         (jdwpVMInitCB): New function.
212
213 2007-01-16  Kyle Galloway  <kgallowa@redhat.com>
214
215         * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
216         * testsuite/libjava.jvmti/getallthreads.java: New test.
217         * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
218         * testsuite/libjava.jvmti/getallthreads.out: Ditto.
219         * testsuite/libjava.jvmti/getallthreads.h: Ditto.
220         * testsuite/libjava.jvmti/getallthreads.jar: Ditto. 
221
222 2007-01-15  Keith Seitz  <keiths@redhat.com>
223
224         * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
225         java.lang.StringBuilder instead of java.lang.StringBuffer.
226         (resumeThread): Likewise.
227
228 2007-01-15  Gary Benson  <gbenson@redhat.com>
229
230         * java/nio/MappedByteBuffer.java: Removed.
231         * sources.am, Makefile.in: Rebuilt.
232
233 2007-01-15  Gary Benson  <gbenson@redhat.com>
234
235         * java/net/URLClassLoader.java: Removed.
236         * gnu/java/net/loader/Load_gcjlib.java: New file.
237         * gnu/gcj/runtime/BootClassLoader.java: Ensure core
238         URL handler is present in static executables.
239         * sources.am, Makefile.in: Rebuilt.
240
241 2007-01-14  H.J. Lu  <hongjiu.lu@intel.com>
242
243         * Makefile.am (libgcj_la_LDFLAGS): Add
244         $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
245         (libgcj_tools_la_LDFLAGS): Likewise.
246         (libgcj_bc_la_LDFLAGS): Likewise.
247         * Makefile.in: Regenerated.
248
249         * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC.  Set
250         LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS.  Set
251         libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
252         Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
253         * configure: Regenerated.
254         * aclocal.m4: Likewise.
255         * gcj/Makefile.in: Likewise.
256         * include/Makefile.in: Likewise.
257         * testsuite/Makefile.in: Likewise.
258
259 2007-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
260
261         * sysdep/sh/locks.h (read_barrier): New.
262         (write_barrier): Likewise.
263
264 2007-01-12  Andrew Haley  <aph@redhat.com>
265
266         * include/i386-signal.h: Rewrite to use rt_sigaction.
267
268 2007-01-11  Andrew Haley  <aph@redhat.com>
269
270         * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
271         to char*.
272         * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
273         aliasing violation.
274
275 2007-01-10  Tom Tromey  <tromey@redhat.com>
276
277         * gnu/gcj/xlib/*.h: New files.
278         * gnu/awt/xlib/*.h: Likewise.
279         * classpath/lib/gnu/gcj/xlib: New class files.
280         * classpath/lib/gnu/awt/xlib: Likewise.
281
282 2007-01-10  Tom Tromey  <tromey@redhat.com>
283
284         * HACKING: Various updates.
285
286 2007-01-10  Tom Tromey  <tromey@redhat.com>
287
288         * java/lang/natDouble.cc (toString): Added parens.
289         * gnu/gcj/io/shs.h (PROTO): Define.
290         * link.cc (resolve_pool_entry): Added missing braces.
291
292 2007-01-10  H.J. Lu  <hongjiu.lu@intel.com>
293
294         PR libgcj/30424
295         * sysdep/ia64/locks.h (read_barrier): New.
296         (write_barrier): New.
297
298 2007-01-10  Gary Benson  <gbenson@redhat.com>
299
300         * java/net/URL.java: Removed.
301         * sources.am, Makefile.in: Rebuilt.
302
303 2007-01-10  Matthias Klose  <doko@debian.org>
304
305         * Makefile.am (install-exec-hook): Support $(DESTDIR).
306         * Makefile.in: Regenerated.
307
308 2007-01-05  Tom Tromey  <tromey@redhat.com>
309
310         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
311         dummy.class in srcdir.
312
313 2007-01-03  Tom Tromey  <tromey@redhat.com>
314
315         * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
316         for srcdir.
317
318 2007-01-03  Tom Tromey  <tromey@redhat.com>
319
320         * testsuite/*: Added many .jar and .h files.
321         * testsuite/libjava.special/special.exp
322         (gcj_special_try_compiler): New proc.
323         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
324         bytecompile source.  Search for .jar files.
325         (gcj_loader_test_one): Don't look for MyLoader.java.
326         * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
327         bytecompile sources or build headers.
328         (gcj_jvmti_run): Look for .jar files.
329         * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
330         files.
331         (gcj_jni_test_one): Don't bytecompile sources or build headers.
332         Set classpath when invoking gij.
333         (gcj_jni_invocation_test_one): Likewise.
334         * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
335         headers or bytecompile sources.
336         (gcj_cni_run): Use .jar files, not .java files.
337         * testsuite/libjava.lang/lang.exp: Compile .jar files.
338
339 2007-01-02  Tom Tromey  <tromey@redhat.com>
340
341         * configure: Rebuilt.
342         * configure.ac: Check for gjar.
343
344 2007-01-02  Tom Tromey  <tromey@redhat.com>
345
346         * testsuite/libjava.jacks/jacks.exp: Removed.
347         * testsuite/libjava.jacks/jacks.xfail: Removed.
348