forked from qt-creator/qt-creator
Debugger: Switch on QObject name display by default
... and use the option to govern general QObject guts display. This allows people to completely avoid the performance impact of attempted QObject display and still makes the feature more prominent for our favorite use case. Change-Id: I1e53b6448f646ab7eea9168a3cd24c77769e6328 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1039,6 +1039,17 @@ class Dumper(DumperBase):
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
lenns = len(ns)
|
||||
if lenns:
|
||||
sym = '_ZN%d%s7QObject11customEventEPNS_6QEventE' % \
|
||||
(lenns - 2, ns[:lenns - 2])
|
||||
else:
|
||||
sym = '_ZN7QObject11customEventEP6QEvent'
|
||||
self.qtCustomEventFunc = toInteger(gdb.parse_and_eval('(size_t)&%s' % sym))
|
||||
except:
|
||||
pass
|
||||
|
||||
# This might be wrong, but we can't do better: We found
|
||||
# a libQt5Core and could not extract a namespace.
|
||||
# The best guess is that there isn't any.
|
||||
|
||||
Reference in New Issue
Block a user