diff options
Diffstat (limited to 'tools/misc/h5debug.c')
-rw-r--r-- | tools/misc/h5debug.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/misc/h5debug.c b/tools/misc/h5debug.c index dca6216..cc2aa3a 100644 --- a/tools/misc/h5debug.c +++ b/tools/misc/h5debug.c @@ -29,6 +29,7 @@ #define H5B2_PACKAGE /*suppress error about including H5B2pkg */ #define H5B2_TESTING /*suppress warning about H5B2 testing funcs*/ #define H5BT_PACKAGE /*suppress error about including H5BTpkg */ +#define H5SH_PACKAGE /*suppress error about including H5SHpkg */ #include "H5private.h" /* Generic Functions */ #include "H5Bprivate.h" @@ -42,6 +43,7 @@ #include "H5Iprivate.h" #include "H5Opkg.h" #include "H5Pprivate.h" +#include "H5SHpkg.h" /* Segmented heap */ /* File drivers */ #include "H5FDfamily.h" @@ -253,6 +255,12 @@ main(int argc, char *argv[]) */ status = H5BT_hdr_debug(f, H5P_DATASET_XFER_DEFAULT, addr, stdout, 0, VCOL); + } else if (!HDmemcmp(sig, H5SH_MAGIC, H5SH_SIZEOF_MAGIC)) { + /* + * Debug a segmented heap info + */ + status = H5SH_debug(f, H5P_DATASET_XFER_DEFAULT, addr, stdout, 0, VCOL); + } else if (sig[0] == H5O_VERSION) { /* * This could be an object header. Since they don't have a signature |