Modify the dso rule to allow spaces in [] names.

Some of the map names have spaces in them, but only the ones that look
like:

[anon:atexit handlers]

So allow spaces between a [ and a ].

Change-Id: I09f1b50533fcd2e79acda199dcc3fb99c6d8428f
This commit is contained in:
Christopher Ferris
2015-11-30 16:29:57 -08:00
parent 6cf9ae5b6b
commit c14b612ba1

View File

@@ -91,7 +91,7 @@ class TraceConverter:
"[ \t]+..[ \t]+" # (space)pc(space). "[ \t]+..[ \t]+" # (space)pc(space).
"(?P<offset>[0-9a-f]" + self.width + ")[ \t]+" # Offset (hex number given without "(?P<offset>[0-9a-f]" + self.width + ")[ \t]+" # Offset (hex number given without
# 0x prefix). # 0x prefix).
"(?P<dso>[^\r\n \t]*)" # Library name. "(?P<dso>\[[^\]]+\]|[^\r\n \t]*)" # Library name.
"( \(offset (?P<so_offset>0x[0-9a-fA-F]+)\))?" # Offset into the file to find the start of the shared so. "( \(offset (?P<so_offset>0x[0-9a-fA-F]+)\))?" # Offset into the file to find the start of the shared so.
"(?P<symbolpresent> \((?P<symbol>.*)\))?") # Is the symbol there? "(?P<symbolpresent> \((?P<symbol>.*)\))?") # Is the symbol there?
# pylint: disable-msg=C6310 # pylint: disable-msg=C6310