summaryrefslogtreecommitdiffstats
path: root/src/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/debug.c b/src/debug.c
index d07b2cb..220b461 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -53,6 +53,7 @@ main (int argc, char *argv[])
uint8 sig[16];
intn i;
herr_t status = SUCCEED;
+ haddr_t extra = 0;
/*
* Parse command arguments.
@@ -61,6 +62,9 @@ main (int argc, char *argv[])
printf ("New address: %s\n", argv[2]);
addr = strtol (argv[2], NULL, 0);
}
+ if (argc>3) {
+ extra = strtol (argv[3], NULL, 0);
+ }
/*
* Open the file and get the file descriptor.
@@ -99,7 +103,7 @@ main (int argc, char *argv[])
/*
* Debug a symbol table node.
*/
- status = H5G_node_debug (f, addr, stdout, 0, VCOL);
+ status = H5G_node_debug (f, addr, stdout, 0, VCOL, extra);
} else if (!memcmp (sig, H5B_MAGIC, H5B_SIZEOF_MAGIC)) {
/*
@@ -110,7 +114,7 @@ main (int argc, char *argv[])
H5B_subid_t subtype = sig[H5B_SIZEOF_MAGIC];
switch (subtype) {
case H5B_SUBTYPE_SNODE:
- status = H5G_node_debug (f, addr, stdout, 0, VCOL);
+ status = H5G_node_debug (f, addr, stdout, 0, VCOL, extra);
break;
default: