summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-07-17 11:43:16 -0400
committerDave Brolley <brolley@redhat.com>2009-07-17 11:43:16 -0400
commit6c456acd35009630facd95cca91483a92aa50e9f (patch)
tree92f90c79d473d50eb42f103634df0167c1b63ab5 /tapsets.cxx
parent451535e8b0b1018a51206283d89d233d37ea8621 (diff)
parentea14cf671a7ad543ad4752b301883789ab86f70f (diff)
downloadsystemtap-steved-6c456acd35009630facd95cca91483a92aa50e9f.tar.gz
systemtap-steved-6c456acd35009630facd95cca91483a92aa50e9f.tar.xz
systemtap-steved-6c456acd35009630facd95cca91483a92aa50e9f.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index daf6cb2b..f1fe52de 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -597,15 +597,15 @@ struct dwarf_builder: public derived_probe_builder
dwflpp *get_kern_dw(systemtap_session& sess, const string& module)
{
- if (kern_dw.find(module) == kern_dw.end())
- kern_dw[module] = new dwflpp(sess, module, true);
+ if (kern_dw[module] == 0)
+ kern_dw[module] = new dwflpp(sess, module, true); // might throw
return kern_dw[module];
}
dwflpp *get_user_dw(systemtap_session& sess, const string& module)
{
- if (user_dw.find(module) == user_dw.end())
- user_dw[module] = new dwflpp(sess, module, false);
+ if (user_dw[module] == 0)
+ user_dw[module] = new dwflpp(sess, module, false); // might throw
return user_dw[module];
}