]> sourceware.org Git - systemtap.git/commitdiff
Allow capitals in @cast headers
authorJosh Stone <jistone@redhat.com>
Fri, 11 Feb 2011 03:09:25 +0000 (19:09 -0800)
committerJosh Stone <jistone@redhat.com>
Fri, 11 Feb 2011 03:09:25 +0000 (19:09 -0800)
The conversion to regexp_match lost the REG_ICASE, so we need to
manually allow capitals in the regular expression.

* buildrun.cxx (make_typequery): Add A-Z to the character class.

buildrun.cxx

index e07feeb981d72a6e526314ba63c45917ef6f7a59..dae78b05fbebd845a51569b6879a54d52176de66 100644 (file)
@@ -689,7 +689,7 @@ make_typequery(systemtap_session& s, string& module)
         return -1;
       string header = module.substr(i, end - i);
       vector<string> matches;
-      if (regexp_match(header, "^[a-z0-9/_.+-]+$", matches))
+      if (regexp_match(header, "^[a-zA-Z0-9/_.+-]+$", matches))
         {
           if (! s.suppress_warnings)
             cerr << "Warning: skipping malformed @cast header \""
This page took 0.030596 seconds and 5 git commands to generate.