summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-09-03 12:31:21 -0700
committerJosh Stone <jistone@redhat.com>2009-09-03 12:31:21 -0700
commitb969d16b2986a491eb37706e09da888d9914a7dd (patch)
tree54e19dfc53ae6ef60f0219803576d127723db3c7 /dwflpp.cxx
parent178ac3f6fdef839ef1ca646421e2c436a91ac1fb (diff)
downloadsystemtap-steved-b969d16b2986a491eb37706e09da888d9914a7dd.tar.gz
systemtap-steved-b969d16b2986a491eb37706e09da888d9914a7dd.tar.xz
systemtap-steved-b969d16b2986a491eb37706e09da888d9914a7dd.zip
Escape literal '.'s in regular expressions
* dwflpp.cxx (dwflpp::build_blacklist): Escape '.'s in filenames.
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r--dwflpp.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/dwflpp.cxx b/dwflpp.cxx
index 04561d3c..2437630e 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -2376,15 +2376,15 @@ dwflpp::build_blacklist()
blsection += "|\\.meminit\\.";
blsection += "|\\.memexit\\.";
- blfile += "kernel/kprobes.c"; // first alternative, no "|"
- blfile += "|arch/.*/kernel/kprobes.c";
+ blfile += "kernel/kprobes\\.c"; // first alternative, no "|"
+ blfile += "|arch/.*/kernel/kprobes\\.c";
// Older kernels need ...
- blfile += "|include/asm/io.h";
- blfile += "|include/asm/bitops.h";
+ blfile += "|include/asm/io\\.h";
+ blfile += "|include/asm/bitops\\.h";
// While newer ones need ...
- blfile += "|arch/.*/include/asm/io.h";
- blfile += "|arch/.*/include/asm/bitops.h";
- blfile += "|drivers/ide/ide-iops.c";
+ blfile += "|arch/.*/include/asm/io\\.h";
+ blfile += "|arch/.*/include/asm/bitops\\.h";
+ blfile += "|drivers/ide/ide-iops\\.c";
// XXX: it would be nice if these blacklisted functions were pulled
// in dynamically, instead of being statically defined here.