forked from qt-creator/qt-creator
Debugger: Support piping dumpers into gdb
This allows using dumpers available on the host being used from remotely running gdb. No lldb/cdb yet. Task-number: QTCREATORBUG-29000 Task-number: QTCREATORBUG-16246 Change-Id: Ib1a40a8c0284dcf41e8800d70ca3e632c699b2fa Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -195,10 +195,16 @@ class DumperBase():
|
||||
self.childrenPrefix = 'children=['
|
||||
self.childrenSuffix = '],'
|
||||
|
||||
self.dumpermodules = [
|
||||
os.path.splitext(os.path.basename(p))[0] for p in
|
||||
glob.glob(os.path.join(os.path.dirname(__file__), '*types.py'))
|
||||
]
|
||||
self.dumpermodules = []
|
||||
|
||||
try:
|
||||
# Fails in the piping case
|
||||
self.dumpermodules = [
|
||||
os.path.splitext(os.path.basename(p))[0] for p in
|
||||
glob.glob(os.path.join(os.path.dirname(__file__), '*types.py'))
|
||||
]
|
||||
except:
|
||||
pass
|
||||
|
||||
# These values are never used, but the variables need to have
|
||||
# some value base for the swapping logic in Children.__enter__()
|
||||
|
||||
Reference in New Issue
Block a user