]> sourceware.org Git - systemtap.git/commitdiff
Escape literal '.'s in regular expressions
authorJosh Stone <jistone@redhat.com>
Thu, 3 Sep 2009 19:31:21 +0000 (12:31 -0700)
committerJosh Stone <jistone@redhat.com>
Thu, 3 Sep 2009 19:31:21 +0000 (12:31 -0700)
* dwflpp.cxx (dwflpp::build_blacklist): Escape '.'s in filenames.

dwflpp.cxx

index 04561d3c76b3b4b9ab0356e8a4fde9ca90fec300..2437630e2564f0764cc862d2df364180eb8451eb 100644 (file)
@@ -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.
This page took 0.035489 seconds and 5 git commands to generate.