debug-viewer: Fixed C++ destructors detection
authorXabier Rodriguez Calvar <calvaris@igalia.com>
Wed, 14 Feb 2018 12:30:41 +0000 (13:30 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 16 Feb 2018 13:12:42 +0000 (13:12 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=793447

debug-viewer/GstDebugViewer/Data.py

index 752bcd6..a97cee3 100644 (file)
@@ -155,7 +155,7 @@ def default_log_line_regex_():
     PID = r"(\d+)\s*"
     FILENAME = r"([^:]*):"
     LINE = r"(\d+):"
-    FUNCTION = "([A-Za-z0-9_]*|operator\(\)):"
+    FUNCTION = "(~?[A-Za-z0-9_]*|operator\(\)):"
     # FIXME: When non-g(st)object stuff is logged with *_OBJECT (like
     # buffers!), the address is printed *without* <> brackets!
     OBJECT = "(?:<([^>]+)>)?"