summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-11-23 19:08:51 -0500
committerDave Brolley <brolley@redhat.com>2009-11-23 19:08:51 -0500
commit5d1c958ce2dcc0f28c1bd13b8e005c0c2ad1cdba (patch)
treee44ad8807e0b5b2e1bb85682f677d492f1195dbf /main.cxx
parent562d60b004e3d7ae73c1c7508be529006bd6430f (diff)
parent90bba7158de040705a101ba1fdf6062866b4b4e9 (diff)
downloadsystemtap-steved-5d1c958ce2dcc0f28c1bd13b8e005c0c2ad1cdba.tar.gz
systemtap-steved-5d1c958ce2dcc0f28c1bd13b8e005c0c2ad1cdba.tar.xz
systemtap-steved-5d1c958ce2dcc0f28c1bd13b8e005c0c2ad1cdba.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Conflicts: configure
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx18
1 files changed, 13 insertions, 5 deletions
diff --git a/main.cxx b/main.cxx
index 165b51c2..71c70df8 100644
--- a/main.cxx
+++ b/main.cxx
@@ -676,11 +676,19 @@ main (int argc, char * const argv [])
break;
case 'd':
- s.unwindsym_modules.insert (string (optarg));
- // PR10228: trigger task-finder logic early if -d /USER-MODULE/ given.
- if (optarg[0] == '/')
- enable_task_finder (s);
- break;
+ {
+ // At runtime user module names are resolved through their
+ // canonical (absolute) path.
+ const char *mpath = canonicalize_file_name (optarg);
+ if (mpath == NULL) // Must be a kernel module name
+ mpath = optarg;
+ s.unwindsym_modules.insert (string (mpath));
+ // PR10228: trigger task-finder logic early if -d /USER-MODULE/
+ // given.
+ if (mpath[0] == '/')
+ enable_task_finder (s);
+ break;
+ }
case 'e':
if (have_script)