diff options
author | fche <fche> | 2008-01-23 23:42:06 +0000 |
---|---|---|
committer | fche <fche> | 2008-01-23 23:42:06 +0000 |
commit | 25114db1ce9c65a1b6844b9541c28f6e960821d8 (patch) | |
tree | 8c814d2b09ab78f3eb8e534da5a62b4e745c2f8b /tapsets.cxx | |
parent | 6b535ce2ea1aebf408afe6cc51ef45b50f9a7879 (diff) | |
download | systemtap-steved-25114db1ce9c65a1b6844b9541c28f6e960821d8.tar.gz systemtap-steved-25114db1ce9c65a1b6844b9541c28f6e960821d8.tar.xz systemtap-steved-25114db1ce9c65a1b6844b9541c28f6e960821d8.zip |
PR2521: configurable debuginfo search path
2008-01-23 Frank Ch. Eigler <fche@elastic.org>
PR 2151
* tapsets.cxx (dwflpp::setup): Parametrize debuginfo_path.
* stap.1.in: Document this.
PR 2521.
* systemtap.base/debugpath.exp: New test.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index 937f34b3..06aa73aa 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -716,7 +716,10 @@ struct dwflpp { // XXX: this is where the session -R parameter could come in static char debuginfo_path_arr[] = "-:.debug:/usr/lib/debug"; - static char *debuginfo_path = debuginfo_path_arr; + static char *debuginfo_env_arr = getenv("SYSTEMTAP_DEBUGINFO_PATH"); + + static char *debuginfo_path = (debuginfo_env_arr ? + debuginfo_env_arr : debuginfo_path_arr); static const Dwfl_Callbacks proc_callbacks = { |