diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2008-10-01 19:24:32 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2008-10-01 19:24:32 (GMT) |
commit | f75d42241064d6a0b7a0e1ad017e15b5c64b9ca6 (patch) | |
tree | e142f11effb7070056ab8d7220535d1ff3a9ea22 /tools/misc | |
parent | d9f91a3a6005cbdee81e2f353f6591cb41bf94ea (diff) | |
download | hdf5-f75d42241064d6a0b7a0e1ad017e15b5c64b9ca6.zip hdf5-f75d42241064d6a0b7a0e1ad017e15b5c64b9ca6.tar.gz hdf5-f75d42241064d6a0b7a0e1ad017e15b5c64b9ca6.tar.bz2 |
[svn-r15746] Description:
Add support for extensible array "super block".
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Diffstat (limited to 'tools/misc')
-rw-r--r-- | tools/misc/h5debug.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/misc/h5debug.c b/tools/misc/h5debug.c index 3b2d38c..e11d3bf 100644 --- a/tools/misc/h5debug.c +++ b/tools/misc/h5debug.c @@ -460,6 +460,23 @@ main(int argc, char *argv[]) status = H5EA__iblock_debug(f, H5P_DATASET_XFER_DEFAULT, addr, stdout, 0, VCOL, cls, extra); + } else if(!HDmemcmp(sig, H5EA_SBLOCK_MAGIC, (size_t)H5_SIZEOF_MAGIC)) { + /* + * Debug an extensible aray super block. + */ + const H5EA_class_t *cls = get_H5EA_class(sig); + HDassert(cls); + + /* Check for enough valid parameters */ + if(extra == 0 || extra2 == 0) { + fprintf(stderr, "ERROR: Need extensible array header address and super block index in order to dump super block\n"); + fprintf(stderr, "Extensible array super block usage:\n"); + fprintf(stderr, "\th5debug <filename> <super block address> <array header address> <super block index>\n"); + HDexit(4); + } /* end if */ + + status = H5EA__sblock_debug(f, H5P_DATASET_XFER_DEFAULT, addr, stdout, 0, VCOL, cls, extra, (unsigned)extra2); + } else if(!HDmemcmp(sig, H5EA_DBLOCK_MAGIC, (size_t)H5_SIZEOF_MAGIC)) { /* * Debug an extensible aray data block. |