diff --git a/lnet/utils/debug.c b/lnet/utils/debug.c index 418fdbc96cc5b3d3b7438429ff465628bcc1e4b4..efaaf35ce9a32380f72c567d6968d0289201fdfb 100644 --- a/lnet/utils/debug.c +++ b/lnet/utils/debug.c @@ -722,6 +722,7 @@ static int jt_dbg_modules_2_4(int argc, char **argv) return 0; } + printf("dir\n"); for (mp = mod_paths; mp->name != NULL; mp++) { struct module_info info; int rc; @@ -739,6 +740,8 @@ static int jt_dbg_modules_2_4(int argc, char **argv) printf("add-symbol-file %s%s%s/%s.o 0x%0lx\n", path, path[0] ? "/" : "", mp->path, mp->name, info.addr + sizeof(struct module)); + printf("dir %s%s%s\n", path, + path[0] ? "/" : "", mp->path); } } @@ -774,6 +777,7 @@ static int jt_dbg_modules_2_5(int argc, char **argv) return 0; } + printf("dir\n"); while ((rc = fscanf(file, "%s %s %s %s %s %lx\n", modname, others, others, others, others, &modaddr)) == 6) { for (mp = mod_paths; mp->name != NULL; mp++) { @@ -783,6 +787,8 @@ static int jt_dbg_modules_2_5(int argc, char **argv) if (mp->name) { printf("add-symbol-file %s%s%s/%s.o 0x%0lx\n", path, path[0] ? "/" : "", mp->path, mp->name, modaddr); + printf("dir %s%s%s\n", path, + path[0] ? "/" : "", mp->path); } }