summaryrefslogtreecommitdiffstats
path: root/src/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/debug.c b/src/debug.c
index f5370b4..4b8fdc3 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -26,6 +26,7 @@
#define INDENT 3
#define VCOL 50
+
/*-------------------------------------------------------------------------
* Function: main
@@ -51,7 +52,7 @@ main(int argc, char *argv[])
H5F_t *f;
haddr_t addr;
uint8 sig[16];
- intn i;
+ intn i, ndims;
herr_t status = SUCCEED;
haddr_t extra;
@@ -123,12 +124,18 @@ main(int argc, char *argv[])
* subclass. The subclass identifier is the byte immediately
* after the B-tree signature.
*/
- H5B_subid_t subtype = (H5B_subid_t)sig[H5B_SIZEOF_MAGIC];
+ H5B_subid_t subtype = (H5B_subid_t)sig[H5B_SIZEOF_MAGIC];
+
switch (subtype) {
case H5B_SNODE_ID:
status = H5G_node_debug(f, &addr, stdout, 0, VCOL, &extra);
break;
+ case H5B_ISTORE_ID:
+ ndims = (int)extra.offset;
+ status = H5F_istore_debug (f, &addr, stdout, 0, VCOL, ndims);
+ break;
+
default:
fprintf(stderr, "Unknown B-tree subtype %u\n", (unsigned) (subtype));
HDexit(4);