* java/io/ObjectInputStream.java (readObject): Added code to conditionally dump out the serialized data. Handle ENDBLOCKDATA case a bit more gracefully since the current behavior doesn't seem to work as expected. (readStreamHeader): Added code for serialized data dumper. (readNextBlock): Ditto. (readFields): Ditto. (dump): New private static field for turning on/off dumper. (setDump): New native method. (dumpElement): New native method. (dumpElementln): New native method. * java/io/natObjectInputStream.cc (setDump): New method. (dumpElement): New method. (dumpElementln): New method. Serialization dumper. Enable by configuring with --enable-libgcj-debug and calling java.io.ObjectInputStream.setDump(true) in your test program. The output will be generated as the object is deserialized (i.e. the readObject() method is executed). From-SVN: r37223
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
doc | Loading commit data... | |
gcj | Loading commit data... | |
gnu | Loading commit data... | |
include | Loading commit data... | |
java | Loading commit data... | |
libltdl | Loading commit data... | |
scripts | Loading commit data... | |
sysdep | Loading commit data... | |
testsuite | Loading commit data... | |
COPYING | Loading commit data... | |
ChangeLog | Loading commit data... | |
ChangeLog-1999 | Loading commit data... | |
LIBGCJ_LICENSE | Loading commit data... | |
Makefile.am | Loading commit data... | |
Makefile.in | Loading commit data... | |
NEWS | Loading commit data... | |
README | Loading commit data... | |
THANKS | Loading commit data... | |
acconfig.h | Loading commit data... | |
acinclude.m4 | Loading commit data... | |
aclocal.m4 | Loading commit data... | |
addr2name.awk | Loading commit data... | |
boehm.cc | Loading commit data... | |
chartables.pl | Loading commit data... | |
configure | Loading commit data... | |
configure.host | Loading commit data... | |
configure.in | Loading commit data... | |
defineclass.cc | Loading commit data... | |
exception.cc | Loading commit data... | |
gij.cc | Loading commit data... | |
interpret.cc | Loading commit data... | |
jni.cc | Loading commit data... | |
libgcj-test.spec.in | Loading commit data... | |
libgcj.spec.in | Loading commit data... | |
libgcjdata.c | Loading commit data... | |
libtool-version | Loading commit data... | |
mauve-libgcj | Loading commit data... | |
name-finder.cc | Loading commit data... | |
no-threads.cc | Loading commit data... | |
nogc.cc | Loading commit data... | |
posix-threads.cc | Loading commit data... | |
posix.cc | Loading commit data... | |
prims.cc | Loading commit data... | |
resolve.cc | Loading commit data... | |
win32-threads.cc | Loading commit data... |