OSDN Git Service

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