OSDN Git Service

2007-02-15 Kyle Galloway <kgallowa@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
2         
3         * interpret.cc (_Jv_InterpMethod::check_handler): New method.
4     * interpret-run.cc: Change the catch section to report exception
5     events and to use the new check_handler method.
6     * include/java-interp.h (_Jv_InterpMethod): Add check_handler.
7     * gnu/gcj/jvmti/ExceptionEvent.java: New file.
8     * gnu/gcj/jvmti/ExceptionEvent.h: New file.
9     * gnu/gcj/jvmti/natExceptionEvent.cc: New file.
10     * libjava/classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: New
11     file.
12     * sources.am: Added ExceptionEvent.java.
13     * Makefile.am: Added natExceptionEvent.cc
14     * Makefile.in: Regenerated.
15     * include/Makefile.in: Regenerated.
16     * gcj/Makefile.in: Regenerated.
17
18 2007-02-15  Johannes Schmidt  <jschmidt@avtrex.com>
19         David Daney  <ddaney@avtrex.com>
20
21         * configure.ac: Create vm-tools-packages file.  Add 
22         gnu/gcj/tools/gc_analyze to standard.omit and vm-tools-packages.
23         Check for /proc/self/maps.
24         * Makefile.am (bin_PROGRAMS): Added gc-analyze.
25         (gc_analyze_SOURCES): New.
26         (gc_analyze_LDFLAGS): New.
27         (gc_analyze_LINK): New.
28         (gc_analyze_LDADD): New.
29         (gc_analyze_DEPENDENCIES): New.
30         (nat_source_files): Add gnu/gcj/util/natGCInfo.cc.
31         * Makefile.in: Regenerated.
32         * configure: Regenerated.
33         * include/config.h.in: Regenerated.
34         * sources.am: Regenerated.
35         * scripts/makemake.tcl: Don't include gc-analyze classes in libgcj.
36         * gnu/gcj/tools/gc_analyze/SymbolLookup.java: New.
37         * gnu/gcj/tools/gc_analyze/ObjectMap.java: New.
38         * gnu/gcj/tools/gc_analyze/MemoryMap.java: New.
39         * gnu/gcj/tools/gc_analyze/SymbolTable.java: New.
40         * gnu/gcj/tools/gc_analyze/BlockMap.java: New.
41         * gnu/gcj/tools/gc_analyze/BytePtr.java: New.
42         * gnu/gcj/tools/gc_analyze/ItemList.java: New.
43         * gnu/gcj/tools/gc_analyze/ToolPrefix.java: New.
44         * gnu/gcj/tools/gc_analyze/MemoryAnalyze.java: New.
45         * gnu/gcj/util/GCInfo.java: New.
46         * gnu/gcj/util/GCInfo.h: New.
47         * gnu/gcj/util/natGCInfo.cc: New.
48         * gnu/gcj/util/UtilPermission.java: New.
49         * gnu/gcj/util/UtilPermission.h: New.
50         * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolTable.class: New.
51         * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap$ObjectItem.class: New.
52         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$RangeComparator.class: New.
53         * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$PtrMarks.class: New.
54         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$Range.class: New.
55         * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap.class: New.
56         * classpath/tools/gnu/gcj/tools/gc_analyze/BytePtr.class: New.
57         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$SubstringComparator.class: New.
58         * classpath/tools/gnu/gcj/tools/gc_analyze/ItemList.class: New.
59         * classpath/tools/gnu/gcj/tools/gc_analyze/ToolPrefix.class: New.
60         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze.class: New.
61         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1$Info.class: New.
62         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1.class: New.
63         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$2.class: New.
64         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$3.class: New.
65         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$4.class: New.
66         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$OptionParser.class: New.
67         * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$SizeKind.class: New.
68         * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolLookup.class: New.
69         * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap.class: New.
70         * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap.class: New.
71         * classpath/lib/gnu/gcj/util/GCInfo.class: New.
72         * classpath/lib/gnu/gcj/util/UtilPermission.class: New.
73
74 2007-02-15  David Daney  <ddaney@avtrex.com>
75
76         * gnu/java/net/PlainSocketImpl.h: Regenerate.
77         * gnu/classpath/jdwp/VMVirtualMachine.h: Same.
78         * gnu/classpath/jdwp/VMFrame.h: Same.
79         * java/net/Socket.h: Same.
80         * java/util/Collections$UnmodifiableMap$UnmodifiableEntrySet.h: Same.
81
82 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
83
84         * defineclass.cc (_Jv_ClassReader::read_one_code_attribute):
85         Added LocalVariableTable attribute handling.
86         (_Jv_ClassReader::pool_Utf8_to_char_arr): New method.
87         * jvmti.cc (_Jv_JVMTI_GetLocalVariableTable): New method.
88         * include/java-interp.h: Added local_var_table and 
89         local_var_table_len fields to _Jv_InterpMethod.
90         (_Jv_InterpMethod::get_local_var_table): New method.
91         * testsuite/libjava.jvmti/interp/getlocalvartable.java: New test.
92         * testsuite/libjava.jvmti/interp/getlocalvartable.jar: New test.
93         * testsuite/libjava.jvmti/interp/getlocalvartable.out: Output
94         for new test.
95         * testsuite/libjava.jvmti/interp/getlocalvartable.h: New test.
96         * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc: New test.
97
98 2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
99
100         * gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement.
101
102 2007-02-13  Keith Seitz  <keiths@redhat.com>
103
104         * gnu/classpath/jdwp/natVMVirtualMachine.cc
105         (jdwpBreakpointCB): New function.
106         (jdwpVMInitCB): Define and enable the breakpoint
107         callback.
108
109 2007-02-13  Andrew Haley  <aph@redhat.com>
110
111         * testsuite/libjava.lang/Divide_2.out
112         * testsuite/libjava.lang/Divide_2.java: New test.
113
114 2007-02-12  Keith Seitz  <keiths@redhat.com>
115
116         * jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast
117         from jthread to Thread *; it is no longer needed.
118         (_Jv_JVMTI_GetFrameCount): Likewise.
119         Fix small formatting typo.
120
121 2007-02-12  Tom Tromey  <tromey@redhat.com>
122
123         * sources.am, Makefile.in: Rebuilt.
124         * java/lang/Socket.java: Removed override.
125         * java/lang/DatagramSocket.java: Removed override.
126         * gnu/java/net/PlainSocketImpl.java (localSocketAddress): New
127         field.
128         (getLocalAddress): New method.
129         * gnu/java/net/PlainDatagramSocketImpl.java
130         (PlainDatagramSocketImpl): Throws IOException.
131         * gnu/java/net/natPlainSocketImplPosix.cc (write): Remove
132         'sizeof'.
133         (read): Likewise.
134
135 2007-02-09  Jakub Jelinek  <jakub@redhat.com>
136
137         * java/util/VMTimeZone.java: Rewrite to handle both the old
138         'TZif\0' format and the new one.
139         
140 2007-02-10  Andrew Haley  <aph@redhat.com>
141
142         PR java/30742
143         * gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): New.
144         (getCallingClass): Call GET_CALLING_CLASS.
145         (getCallingClassLoader): Likewise.
146
147 2007-02-10  Mohan Embar  <gnustuff@thisiscool.com>
148
149         * configure: Rebuilt.
150         * configure.ac (GCJH): Reverted second part of patch of 2006-12-20.
151
152 2007-02-10  Mohan Embar  <gnustuff@thisiscool.com>
153
154         * Makefile.in: Rebuilt.
155         * Makefile.am (BUILD_ECJ1): Unify the command for renaming ecjx to
156         the host's ecj1 executable.
157
158 2007-02-09  Richard Henderson  <rth@redhat.com>
159
160         * sysdep/alpha/locks.h (read_barrier): New.
161
162 2007-02-09  Keith Seitz  <keiths@redhat.com>
163
164         * gnu/classpath/jdwp/VMVirtualMachine.java
165         (_stepping_threads): New member.
166         * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
167         Regenerated.
168         * gnu/classpath/jdwp/VMVirtualMachine.h:
169         Regenerated.
170         * gnu/claspath/jdwp/natVMVirtualMachine.cc
171         (get_request_step_filter): New function.
172         (DISABLE_EVENT): New macro.
173         (initialize): Initialize _stepping_threads.
174         (registerEvent): Implement EVENT_SINGLE_STEP.
175         (unregisterEvent): Likewise.
176
177 2007-02-08  Keith Seitz  <keiths@redhat.com>
178
179         * sources.am: Regenerate.
180         * Makefile.in: Regenerate.
181         * testsuite/Makefile.in: Regenerate.
182         * gcj/Makefile.in: Regenerate.
183         * include/Makefile.in: Regenerate.
184
185         * classpath/lib/javax/management/MBeanServerFactory.class:
186         Regenerate.
187
188 2007-02-08  Kyle Galloway  <kgallowa@redhat.com>
189
190         * classpath/gnu/classpath/jdwp/processor/
191         StackFrameCommandSet.java (executeGetValues): Pass jlong instead
192         of ByteBuffer.
193         (executeSetValues): Ditto.
194         (executeThisObject): Ditto.
195         * classpath/gnu/classpath/jdwp/processor/
196         StackFrameCommandSet.class: Rebuilt.
197         * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
198         Rebuilt.
199         * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
200         * classpath/lib/gnu/classpath/jdwp/exception/
201         InvalidFrameException.java: New file.
202         * gnu/classpath/jdwp/VMFrame.java: Added field for thread of
203         frame.
204         (Constructor): New method.
205         * gnu/classpath/jdwp/VMFrame.h: Regenerated.
206         * gnu/classpath/jdwp/VMVirtualMachine.java
207         (getFrame): Changed ByteBuffer to jlong.
208         * gnu/classpath/jdwp/natVMVirtualMachine.cc
209         (getFrame): Implement.
210         * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
211
212 2007-02-08  Kyle Galloway  <kgallowa@redhat.com>
213
214         * include/java-interp.h (_Jv_InterpFrame): obj_ptr field added
215         to hold "this" pointer for frame.
216         (_Jv_InterpFrame::get_this_ptr): New method.
217         * interpret-run.cc: Copy the "this" pointer into obj_ptr.
218
219 2007-02-07  Keith Seitz  <keiths@redhat.com>
220
221         * include/java-interp.h (_Jv_Frame::depth):
222         New function.
223         * jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
224
225 2007-02-07  Kyle Galloway  <kgallowa@redhat.com>
226
227         * jvmti.cc (CHECK_FOR_NATIVE_METHOD): New macro.
228         (_Jv_JVMTI_GetMaxLocals): New method.
229         * include/java-interp.h
230         (_Jv_InterpMethod::get_max_locals): New method.
231
232 2007-02-01 Marco Trudel <mtrudel@gmx.ch>
233
234         * jni.cc (_Jv_JNI_DeleteWeakGlobalRef): Check for NULL objects.
235
236 2007-02-07  Tom Tromey  <tromey@redhat.com>
237
238         * testsuite/libjava.jni/init.c: New file.
239         * testsuite/libjava.jni/init.java: New file.
240         * testsuite/libjava.jni/init.out: New file.
241         * testsuite/libjava.jni/init.jar: New file.
242         * testsuite/libjava.jni/init.h: New file.
243         * testsuite/libjava.jni/init$NativeClass.h: New file.
244
245 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
246
247         PR libgomp/28468
248         * configure: Regenerate.
249
250 2007-02-06  Andrew Haley  <aph@redhat.com>
251
252         * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
253         * sources.am: Rebuild.
254
255 2007-02-05  Keith Seitz  <keiths@redhat.com>
256
257         * jvmti.cc (_envListLock): Change type to
258         ReentrantReadWriteLock.
259         (_Jv_JVMTI_DisposeEnvironment): Switch to read/write
260         lock.
261         (check_enabled_event): Likewise.
262         (_Jv_GetJVMTIEnv): Likewise.
263         (_Jv_JVMTI_Init): Likewise.
264         (_Jv_JVMTI_PostEvent): Likewise. 
265
266 2007-02-05  Keith Seitz  <keiths@redhat.com>
267
268         * gnu/classpath/jdwp/natVMVirtualMachine.cc
269         (registerEvent): Implement EVENT_BREAKPOINT.
270         (unregisterEvent): Likewise.
271         (get_request_location): New function.
272
273 2007-02-05  Matthias Klose  <doko@debian.org>
274
275         testsuite/Makefile.am (compile-tests): Fix typo.
276         testsuite/Makefile.in: Regenerate.
277
278 2007-02-02  Kyle Galloway  <kgallowa@redhat.com>
279
280         * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount):
281         Implment.
282
283 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
284
285         * configure.ac (libjava_cv_anon_version_script): New test.
286         (ANONVERSCRIPT): New AM_CONDITIONAL.
287         * configure: Rebuilt.
288         * Makefile.am (extra_ldflags_libjava): Link with -Wl,--version-script
289         if ANONVERSCRIPT.
290         * Makefile.in: Rebuilt.
291         (libgcj_la_DEPENDENCIES): Depend on libgcj.ver.
292         * libgcj.ver: New file.
293
294 2007-02-01  David Daney  <ddaney@avtrex.com>
295
296         * scripts/makemake.tcl: Replace gnu/xml build with build of all
297         its subpackages.
298         * sources.am: Regenerate.
299         * Makefile.in: Regenerate.
300
301 2007-02-01  Tom Tromey  <tromey@redhat.com>
302
303         * java/lang/ClassLoader.java (getResources): No longer final.
304
305 2007-02-01  Tom Tromey  <tromey@redhat.com>
306
307         * java/util/logging/LogManager.java (loggers): Genericized.
308         (addLogger): Merged.
309         (findAncestor): Likewise.
310         (getLogger): Likewise.
311         (getLoggerNames): Genericized.
312         (reset): Merged.
313         (getLevelProperty): Likewise.
314         * java/lang/reflect/Method.java (getDeclaringClass): Genericized.
315         * java/lang/reflect/Constructor.java (getParameterTypes):
316         Genericized.
317         (getExceptionTypes): Likewise.
318         (newInstance): Likewise.
319         * java/lang/reflect/Array.java (newInstance): Genericized.
320         * java/lang/Object.java (getClass): Genericized.
321         * java/nio/charset/spi/CharsetProvider.java (charsets):
322         Genericized.
323         * java/text/Collator.java: Implement Comparable<Object>.
324
325 2007-02-01  Tom Tromey  <tromey@redhat.com>
326
327         * java/util/Calendar.java: Implement Comparable<Calendar>.  Update
328         comments.
329         (clear): Call complete.
330         (setTimeZone): Call computeTime, computeFields.
331         (compareTo): New method.
332         * java/nio/charset/Charset.java: Implement Comparable<Charset>.
333         (availableCharsets): Genericized.
334         (aliases): Likewise.
335         (compareTo): Changed argument type.
336         * java/lang/ClassLoader.java (loadClass): Genericized.
337         (findClass): Likewise.
338         (defineClass): Likewise.
339         (resolveClass): Likewise.
340         (findSystemClass): Likewise.
341         (setSigners): Likewise.
342         (findLoadedClass): Likewise.
343         (getResources): Likewise.
344         (findResources): Likewise.
345         (getSystemResources): Likewise.
346         (checkInitialized): New method.
347         * java/lang/Class.java (getCanonicalName): New method.
348
349 2007-01-31  Keith Seitz  <keiths@redhat.com>
350
351         * include/jvmti-int.h (JVMTI): Declare member "enabled".
352         * jvmti.cc (JVMTI): Add member "enabled".
353         (_Jv_GetJVMTIEnv): Mark JVMTI enabled.
354         * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled
355         instead of gnu::classpath::jdwp::Jdwp::isDebugging.
356         (_Jv_CompileMethod): If JVMTI is enabled, use run_debug
357         instead of run to compile the method.
358
359         * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step
360         notification.
361
362 2007-01-31  Andreas Tobler  <a.tobler@schweiz.org>
363
364         * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add
365         -shared-libgcc to the cxxflaglist for Darwin.
366
367 2007-01-31  Tom Tromey  <tromey@redhat.com>
368
369         * scripts.am, Makefile.in: Rebuilt.
370         * scripts/makemake.tcl (gnu/javax/swing/text/html/parser): Build
371         as 'ordinary'.
372         (emit_ordinary_rule): New proc.
373
374 2007-01-31  Keith Seitz  <keiths@redhat.com>
375
376         * testsuite/libjava.jvmti/getmethodname.h: New file.
377         * testsuite/libjava.jvmti/getmethodname.jar: New file.
378
379 2007-01-31  Andrew Haley  <aph@redhat.com>
380
381         * prims.cc (_Jv_Abort): fflush (stderr).
382         * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
383
384 2007-01-31  Tom Tromey  <tromey@redhat.com>
385
386         * configure, Makefile.in: Rebuilt.
387         * configure.ac (JAR): Check for -@ feature.
388         * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
389
390 2007-01-31  Tom Tromey  <tromey@redhat.com>
391
392         PR libgcj/30606:
393         * configure, include/config.h.in: Rebuilt.
394         * configure.ac: Check for magic_t in magic.h.
395         * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T.
396
397 2007-01-30  Tom Tromey  <tromey@redhat.com>
398
399         * Makefile.in: Rebuilt.
400         * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
401
402 2007-01-30  Andreas Tobler  <a.tobler@schweiz.org>
403
404         * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
405         cast to print it right.
406
407 2007-01-29  Kaloian Doganov  <kaloian@doganov.org>
408
409         PR libgcj/30600:
410         * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
411         'limit'.
412
413 2007-01-29  Kyle Galloway  <kgallowa@redhat.com>
414
415         * include/java-interp.h:  Added _Jv_Frame class and its two
416         subclasses _Jv_InterpFrame and _Jv_NativeFrame.  Also moved
417         _Jv_FrameType from java-stack.h.
418         * include/java-stack.h: Removed _Jv_FrameType.
419         * java/lang/Thread.java: Added frame member to hold new
420         composite frame stack.
421         * java/lang/Thread.h: Regenerated.
422         * java/lang/Thread.class: Rebuilt.
423         * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
424         calling a JNI method.
425         * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
426         (_Jv_JVMTI_GetFrameCount): New method.
427         * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
428         classes.
429         * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
430         * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
431         * testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
432         * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
433         * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
434         for test. 
435
436 2007-01-29  Tom Tromey  <tromey@redhat.com>
437
438         * interpret.cc (run_debug): Remove comment.
439         (STOREA): Reformat.
440         (STOREI): Likewise.
441         (STOREF): Likewise.
442         (STOREL): Likewise.
443         (STORED): Likewise.
444         (POKEI): Likewise.
445         (run_normal_debug): Likewise.
446         (run_synch_object_debug): Likewise.
447         (run_class_debug): Likewise.
448         (run_synch_class_debug): Likewise.
449         (get1s): Likewise.
450         (get1u): Likewise.
451         (get2u): Likewise.
452         (get4): Likewise.
453         (NULLARRAYCHECK): Likewise.
454         (ARRAYBOUNDSCHECK): Likewise.
455         * interpret-run.cc (insn_target) <breakpoint>: Tidy.
456
457 2007-01-29  Tom Tromey  <tromey@redhat.com>
458
459         * configure, Makefile.in: Rebuilt.
460         * Makefile.am (bin_SCRIPTS): Never install scripts/jar.
461         * configure.ac (BASH_JAR): Removed conditional.
462         (JAR): Prefer the jar found by AC_CHECK_PROGS.
463
464 2007-01-29  Tom Tromey  <tromey@redhat.com>
465
466         * Makefile.in: Rebuilt.
467         * Makefile.am (interpret.lo): New target.  Add -fwrap to
468         AM_CXXFLAGS.
469
470 2007-01-29  Keith Seitz  <keiths@redhat.com>
471
472         * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
473         Define.
474         [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
475         gcj. All jvmti object types now are defined to be their
476         corresponding java classes.
477         * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
478         jthread to Thread*.
479         (_Jv_JVMTI_ResumeThread): Likewise.
480         (_Jv_JVMTI_InterruptThread): Likewise.
481         (_Jv_JVMTI_SetEventNotificationMode): Likewise.
482         * gnu/classpath/jdwp/natVMVirtualMachine.cc
483         (jdwpClassPrepareCB): Likewise.
484         (jdwpThreadEndCB): Likewise.
485         (jdwpThreadStartCB): Likewise.
486         (jdwpVMInitCB): Likewise.
487  
488 2007-01-28  Michele Sandri  <gpointorama@gmail.com>
489
490         * gnu/java/nio/channels/natFileChannelWin32.cc
491         (lock): Implemented.
492         (unlock): Implemented.
493
494 2007-01-27  Andreas Tobler  <a.tobler@schweiz.org>
495
496         PR libgcj/30513
497         * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
498         libgcj_flags to undefine 'sun' at compile time.
499         * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
500         Sparc.
501         (write_barrier): Likewise.
502
503 2007-01-27  Keith Seitz  <keiths@redhat.com>
504
505         * gnu/classpath/jdwp/natVMVirtualMachine.cc
506         (getAllClassMethods): Move error handling to ...
507         (throw_jvmti_error): ... here.
508         (jdwpClassPrepareCB): New function.
509         (jdwpThreadEndCB): New function.
510         (jdwpThreadStartCB): New function.
511         (jdwpVMDeathCB): New function.
512         (jdwpVMInitCB): Define and enable callbacks for
513         ClassPrepare, ThreadEnd, ThreadStart, and VMDeath.
514
515 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
516
517         * Makefile.am (generic_header_files): Add $(inner_nat_headers).
518         * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests.
519         (MYGCJH): New variable.
520         (compile-tests): New goal.
521         * Makefile.in: Rebuilt.
522         * testsuite/Makefile.in: Rebuilt.
523
524 2007-01-26  Andrew Haley  <aph@redhat.com>
525
526         * java/lang/natClass.cc (initializeClass): Re-throw
527         SecurityExceptions.
528         * java/lang/natVMClassLoader.cc (loadClass): checkPackageAccess.
529         * java/lang/ClassLoader.java: (loadClass): Likewise.
530
531 2007-01-26  Tom Tromey  <tromey@redhat.com>
532
533         * Updated headers.
534
535 2007-01-25  Tom Tromey  <tromey@redhat.com>
536
537         PR libgcj/29594:
538         * gnu/gcj/convert/Convert.java (main): Correctly handle missing
539         input or output encodings.  Removed unused local variables.
540
541 2007-01-25  Keith Seitz  <keiths@redhat.com>
542
543         * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
544         * gnu/classpath/jdwp/natVMVirtualMachine.cc
545         (_Jv_GetJDWP_JVMTIEnv): New function.
546         * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
547         (getSignature): Implement.
548         (getModifiers): Implement.
549
550 2007-01-25  Andrew Haley  <aph@redhat.com>
551
552         * configure, Makefile.in, include/config.h.in: Rebuilt.
553         * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
554         * configure.ac: Don't check for libmagic.
555         * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
556         p_magic_close, p_magic_buffer): New globals.
557         (init): Look up 'magic' functions.
558         (guessContentTypeFromBuffer): Updated.
559
560 2007-01-25  Keith Seitz  <keiths@redhat.com>
561
562         * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
563         (_Jv_JVMTI_Interface): Define GetMethodName.
564         * testsuite/libjava.jvmti/getmethodname.java: New file.
565         * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
566         * testsuite/libjava.jvmti/getmethodname.out: New file. 
567
568 2007-01-24  Kyle Galloway  <kgallowa@redhat.com>
569
570         * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file.
571         * libjava/testsuite/libjava.jvmti/interp: New folder.
572         * libjava/testsuite/lib/libjava.exp (exec_gij): New Method.
573
574 2007-01-24  Keith Seitz  <keiths@redhat.com>
575
576         * link.cc (_Jv_Linker::wait_for_state): Add JVMTI
577         CLASS_PREPARE notification.
578
579 2007-01-24  Keith Seitz  <keiths@redhat.com>
580
581         * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h,
582         gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h
583         * interpret-run.cc: Implement insn_breakpoint.
584
585 2007-01-24  Keith Seitz  <keiths@redhat.com>
586
587         * prims.cc (_Jv_RunMain): Send JVMTI event notifications
588         for VM_INIT and VM_DEATH instead of the JDWP notifications.
589
590 2007-01-24  Keith Seitz  <keiths@redhat.com>
591
592         * gnu/classpath/jdwp/natVMVirtualMachine.cc
593         (getAllClassMethods): Implement.
594
595 2007-01-24  Andrew Haley  <aph@redhat.com>
596
597         * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
598         (getClassContext) Add a barrier to prevent GetStackWalkerStack()
599         from being sibcalled.
600
601 2007-01-24  Andrew Haley  <aph@redhat.com>
602
603         * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
604         * sources.am: Rebuild.
605
606 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
607
608         * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced
609         _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t.
610
611 2007-01-23  H.J. Lu  <hongjiu.lu@intel.com>
612
613         PR libgcj/30550
614         * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed.
615         * Makefile.in: Regenerated.
616
617 2007-01-22  Keith Seitz  <keiths@redhat.com>
618
619         * gnu/classpath/jdwp/natVMVirtualMachine.cc
620         (getClassMethod): Implement.
621
622 2007-01-22  Keith  Seitz  <keiths@redhat.com>
623
624         * java/lang/Class.h (_Jv_GetClassStatus): Declare.
625         * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
626         * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
627         (_Jv_JVMTI_Interface): Define GetClassStatus.
628
629 2007-01-22  Tom Tromey  <tromey@redhat.com>
630
631         * configure: Rebuilt.
632         * configure.ac (GCJ): Reverted patch of 2006-12-20.
633
634 2007-01-22  Tom Tromey  <tromey@redhat.com>
635
636         PR java/29812:
637         * testsuite/libjava.jni/pr29812.java: New file.
638         * testsuite/libjava.jni/pr29812_injar.java: New file.
639         * testsuite/libjava.jni/pr29812_injar.jar: New file.
640         * testsuite/libjava.jni/pr29812.out: New file.
641         * testsuite/libjava.jni/pr29812_injar.c: New file.
642         * testsuite/libjava.jni/pr29812_injar.h: New file.
643         * testsuite/libjava.jni/pr29812.jar: New file.
644         * testsuite/libjava.jni/pr29812.c: New file.
645         * testsuite/libjava.jni/pr29812.h: New file.
646         * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
647         New proc.
648         (gcj_jni_invocation_test_one): Use it.
649         (gcj_jni_pr29812): New proc.
650         (gcj_jni_run): Use it.
651         * java/lang/natRuntime.cc (_load): Push a new system frame before
652         calling JNI_OnLoad.
653         * include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
654         (_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
655         * jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
656         <allocated_p>: Now bool.
657         <loader>: New field.
658         (_Jv_JNI_EnsureLocalCapacity): Updated.
659         (_Jv_JNI_NewLocalRef): Likewise.
660         (_Jv_JNI_NewLocalRef): Likewise.
661         (_Jv_JNI_PopLocalFrame): Likewise.
662         (_Jv_JNI_FindClass): Likewise.
663         (_Jv_GetJNIEnvNewFrame): Likewise.
664         (_Jv_JNI_AttachCurrentThread): Likewise.
665         (_Jv_GetJNIEnvNewFrameWithLoader): New function.
666         (_Jv_GetJNIEnvNewFrame): Use it.
667         * include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.
668
669 2007-01-22  Tom Tromey  <tromey@redhat.com>
670
671         * libtool-version: Bump current to 9.
672
673 2007-01-22  Andrew Haley  <aph@redhat.com>
674
675         * sysdep/alpha/locks.h (write_barrier): New.
676
677 2007-01-21  Matthias Klose  <doko@debian.org>
678
679         * Makefile.am (install-exec-hook): Use transformed name.
680         * Makefile.in: Regenerate.
681
682 2007-01-19  Keith Seitz  <keiths@redhat.com>
683
684         * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameters
685         in methods and reformat.
686
687         * gnu/classpath/jdwp/natVMFrame.cc: Mark unused parameters with
688         MAYBE_UNUSED.
689
690 2007-01-18  Keith Seitz  <keiths@redhat.com>
691
692         From Macro Trudel <mtrudel@gmx.ch>:
693         * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB):
694         Use JNICALL.
695
696 2007-01-18  Marco Trudel  <mtrudel@gmx.ch>
697
698         * jni.cc (_Jv_JNI_FindClass): Initialize class.
699         * testsuite/libjava.jni/findclass2.jar: New file.
700         * testsuite/libjava.jni/findclass2.h: New file.
701         * testsuite/libjava.jni/findclass2.java: New file
702         * testsuite/libjava.jni/findclass2.c: New file.
703         * testsuite/libjava.jni/findclass2.out: New file.
704
705 2007-01-18  Tom Tromey  <tromey@redhat.com>
706
707         * configure: Rebuilt.
708         * configure.ac: Use multi_basedir instead of libgcj_basedir.
709
710 2007-01-18  Gary Benson  <gbenson@redhat.com>
711
712         * gnu/java/nio/natVMPipeEcos.cc:
713         Renamed from gnu/java/nio/natPipeImplEcos.cc.
714         * gnu/java/nio/natVMPipePosix.cc:
715         Renamed from gnu/java/nio/natPipeImplPosix.cc.
716         * gnu/java/nio/natVMPipeWin32.cc:
717         Renamed from gnu/java/nio/natPipeImplWin32.cc.
718         * gnu/java/nio/natVMSelectorEcos.cc:
719         Renamed from gnu/java/nio/natSelectorImplEcos.cc.
720         * gnu/java/nio/natVMSelectorPosix.cc:
721         Renamed from gnu/java/nio/natSelectorImplPosix.cc.
722         * gnu/java/nio/natVMSelectorWin32.cc:
723         Renamed from gnu/java/nio/natSelectorImplWin32.cc.
724         * java/io/natVMObjectInputStream.cc:
725         Renamed from java/io/natObjectInputStream.cc.
726         * java/lang/natVMDouble.cc:
727         Renamed from java/lang/natDouble.cc.
728         * java/lang/natVMFloat.cc:
729         Renamed from java/lang/natFloat.cc.     
730         * Makefile.am, configure.ac: Reflect the above.
731         * Makefile.in, configure: Rebuilt.
732
733 2007-01-17  Andrew Haley  <aph@redhat.com>
734
735         * Makefile.in: Rebuilt.
736         * Makefile.am (ecjx_LDFLAGS): Pass -fbootclasspath.
737
738 2007-01-17  Keith Seitz  <keiths@redhat.com>
739
740         * java/lang/natThread.cc (finish_): Add JVMTI ThreadEnd notification.
741         (_Jv_NotifyThreadStart): Add JVMTI ThreadStart notification.
742
743 2007-01-16  Jack Howarth  <howarth@bromo.med.uc.edu>
744
745         * configure.ac: Use multi.m4 from aclocal rather than custom
746         code.  Use multi_basedir instead libgcj_basedir.  Test for
747         /proc/self/exe when not cross-compiling.
748         * aclocal.m4: Regenerate.
749         * configure: Regenerate.
750         * Makefile.in: Regenerate.
751
752 2007-01-17  Gary Benson  <gbenson@redhat.com>
753
754         * java/nio/natVMDirectByteBufferImpl.cc:
755         Renamed from java/nio/natDirectByteBufferImpl.cc.
756         * Makefile.am: Reflect the above.
757         * Makefile.in: Rebuilt.
758         
759 2007-01-17  Marco Trudel  <mtrudel@gmx.ch>
760
761         * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static.  Use JNICALL.
762         Fixed indentation.  Removed unused variable.
763
764 2007-01-16  Tom Tromey  <tromey@redhat.com>
765
766         * java/lang/natThread.cc (finalize_native): Remove cast.
767         (_Jv_GetCurrentJNIEnv): Likewise.
768         * include/jvm.h (struct natThread) <jni_env>: Declare as
769         _Jv_JNIEnv*.
770
771 2007-01-16  Keith Seitz  <keiths@redhat.com>
772
773         * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use
774         %#llx instead of %d for new_value.
775         * testsuite/libjava.jvmti/events.out: Update expected output.
776         * testsuite/libjava.jvmti/events.jar: Regenerate.
777
778 2007-01-16  Keith Seitz  <keiths@redhat.com>
779
780         * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):
781         New macro.
782         (ENABLE_EVENT): New macro.
783         (initialize): Define and enable JVMTI VM_INIT callback.
784         (jdwpVMInitCB): New function.
785
786 2007-01-16  Kyle Galloway  <kgallowa@redhat.com>
787
788         * jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
789         * testsuite/libjava.jvmti/getallthreads.java: New test.
790         * testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
791         * testsuite/libjava.jvmti/getallthreads.out: Ditto.
792         * testsuite/libjava.jvmti/getallthreads.h: Ditto.
793         * testsuite/libjava.jvmti/getallthreads.jar: Ditto. 
794
795 2007-01-15  Keith Seitz  <keiths@redhat.com>
796
797         * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Use
798         java.lang.StringBuilder instead of java.lang.StringBuffer.
799         (resumeThread): Likewise.
800
801 2007-01-15  Gary Benson  <gbenson@redhat.com>
802
803         * java/nio/MappedByteBuffer.java: Removed.
804         * sources.am, Makefile.in: Rebuilt.
805
806 2007-01-15  Gary Benson  <gbenson@redhat.com>
807
808         * java/net/URLClassLoader.java: Removed.
809         * gnu/java/net/loader/Load_gcjlib.java: New file.
810         * gnu/gcj/runtime/BootClassLoader.java: Ensure core
811         URL handler is present in static executables.
812         * sources.am, Makefile.in: Rebuilt.
813
814 2007-01-14  H.J. Lu  <hongjiu.lu@intel.com>
815
816         * Makefile.am (libgcj_la_LDFLAGS): Add
817         $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS).
818         (libgcj_tools_la_LDFLAGS): Likewise.
819         (libgcj_bc_la_LDFLAGS): Likewise.
820         * Makefile.in: Regenerated.
821
822         * configure.ac: Use ACX_PROG_LD_GNU_SYMBOLIC.  Set
823         LIBGCJ_LD_SYMBOLIC_FUNCTIONS to $SYMBOLIC_LDFLAGS.  Set
824         libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
825         Substitute LIBGCJ_LD_SYMBOLIC_FUNCTIONS.
826         * configure: Regenerated.
827         * aclocal.m4: Likewise.
828         * gcj/Makefile.in: Likewise.
829         * include/Makefile.in: Likewise.
830         * testsuite/Makefile.in: Likewise.
831
832 2007-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
833
834         * sysdep/sh/locks.h (read_barrier): New.
835         (write_barrier): Likewise.
836
837 2007-01-12  Andrew Haley  <aph@redhat.com>
838
839         * include/i386-signal.h: Rewrite to use rt_sigaction.
840
841 2007-01-11  Andrew Haley  <aph@redhat.com>
842
843         * prims.cc (jdwpOptions) Fix deprecated cast from char[] constant
844         to char*.
845         * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Rewrite to fix
846         aliasing violation.
847
848 2007-01-10  Tom Tromey  <tromey@redhat.com>
849
850         * gnu/gcj/xlib/*.h: New files.
851         * gnu/awt/xlib/*.h: Likewise.
852         * classpath/lib/gnu/gcj/xlib: New class files.
853         * classpath/lib/gnu/awt/xlib: Likewise.
854
855 2007-01-10  Tom Tromey  <tromey@redhat.com>
856
857         * HACKING: Various updates.
858
859 2007-01-10  Tom Tromey  <tromey@redhat.com>
860
861         * java/lang/natDouble.cc (toString): Added parens.
862         * gnu/gcj/io/shs.h (PROTO): Define.
863         * link.cc (resolve_pool_entry): Added missing braces.
864
865 2007-01-10  H.J. Lu  <hongjiu.lu@intel.com>
866
867         PR libgcj/30424
868         * sysdep/ia64/locks.h (read_barrier): New.
869         (write_barrier): New.
870
871 2007-01-10  Gary Benson  <gbenson@redhat.com>
872
873         * java/net/URL.java: Removed.
874         * sources.am, Makefile.in: Rebuilt.
875
876 2007-01-10  Matthias Klose  <doko@debian.org>
877
878         * Makefile.am (install-exec-hook): Support $(DESTDIR).
879         * Makefile.in: Regenerated.
880
881 2007-01-05  Tom Tromey  <tromey@redhat.com>
882
883         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Find
884         dummy.class in srcdir.
885
886 2007-01-03  Tom Tromey  <tromey@redhat.com>
887
888         * testsuite/libjava.cni/cni.exp (gcj_cni_compile_cxx_to_o): Add -I
889         for srcdir.
890
891 2007-01-03  Tom Tromey  <tromey@redhat.com>
892
893         * testsuite/*: Added many .jar and .h files.
894         * testsuite/libjava.special/special.exp
895         (gcj_special_try_compiler): New proc.
896         * testsuite/libjava.loader/loader.exp (gcj_loader_run): Don't
897         bytecompile source.  Search for .jar files.
898         (gcj_loader_test_one): Don't look for MyLoader.java.
899         * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_test_one): Don't
900         bytecompile sources or build headers.
901         (gcj_jvmti_run): Look for .jar files.
902         * testsuite/libjava.jni/jni.exp (gcj_jni_run): Compile .jar
903         files.
904         (gcj_jni_test_one): Don't bytecompile sources or build headers.
905         Set classpath when invoking gij.
906         (gcj_jni_invocation_test_one): Likewise.
907         * testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Don't build
908         headers or bytecompile sources.
909         (gcj_cni_run): Use .jar files, not .java files.
910         * testsuite/libjava.lang/lang.exp: Compile .jar files.
911
912 2007-01-02  Tom Tromey  <tromey@redhat.com>
913
914         * configure: Rebuilt.
915         * configure.ac: Check for gjar.
916
917 2007-01-02  Tom Tromey  <tromey@redhat.com>
918
919         * testsuite/libjava.jacks/jacks.exp: Removed.
920         * testsuite/libjava.jacks/jacks.xfail: Removed.
921