From 7df81de58627b50e17b28ded8763f0e17de07e7c Mon Sep 17 00:00:00 2001 From: jacob <jacob> Date: Wed, 22 Jun 2005 17:52:22 +0000 Subject: [PATCH] add directory commands to gdb script --- lnet/utils/debug.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lnet/utils/debug.c b/lnet/utils/debug.c index 418fdbc96c..efaaf35ce9 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); } } -- GitLab