Debugger: Do not try to treat labels as variables

They produce no values later anyway and are slow to process.
With this patch, stepping in VME::run from qv4vme_moth.cpp
takes about 1s instead of more than 40s previously.

Change-Id: I5c96966612bdb7c0120d9ebb545d6e8483cbf843
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-10-08 16:05:29 +02:00
parent a004cfbdd0
commit ea39476ef2

View File

@@ -290,6 +290,9 @@ class Dumper(DumperBase):
warn("UNEXPECTED 'None' BLOCK")
break
for symbol in block:
# Filter out labels etc.
if symbol.is_variable or symbol.is_argument:
name = symbol.print_name
if name == "__in_chrg" or name == "__PRETTY_FUNCTION__":