summaryrefslogtreecommitdiffstats
path: root/tools/misc
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-03-29 21:45:09 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-03-29 21:45:09 (GMT)
commita9d5fc42eb26da76fc7c3b5687552d4291bea1de (patch)
tree3856b4ecf6930bab7e9096bcc42980e8db95e82d /tools/misc
parentd8b389836869c89801b9a1c2758d83b800b8f7b6 (diff)
downloadhdf5-a9d5fc42eb26da76fc7c3b5687552d4291bea1de.zip
hdf5-a9d5fc42eb26da76fc7c3b5687552d4291bea1de.tar.gz
hdf5-a9d5fc42eb26da76fc7c3b5687552d4291bea1de.tar.bz2
[svn-r10506] Purpose:
New feature Description: Add first iteration of "segmented heap" code, which will be used to store links in groups in a more flexible way than the previous "local heap" mechanism. Platforms tested: FreeBSD 4.11 (sleipnir) w/parallel Solaris 2.9 (shanti)
Diffstat (limited to 'tools/misc')
-rw-r--r--tools/misc/h5debug.c8
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