OSDN Git Service

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