Commit ea39476e authored by hjk's avatar hjk

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: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent a004cfbd
...@@ -290,6 +290,9 @@ class Dumper(DumperBase): ...@@ -290,6 +290,9 @@ class Dumper(DumperBase):
warn("UNEXPECTED 'None' BLOCK") warn("UNEXPECTED 'None' BLOCK")
break break
for symbol in block: for symbol in block:
# Filter out labels etc.
if symbol.is_variable or symbol.is_argument:
name = symbol.print_name name = symbol.print_name
if name == "__in_chrg" or name == "__PRETTY_FUNCTION__": if name == "__in_chrg" or name == "__PRETTY_FUNCTION__":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment