diff options
author | hjk <hjk@theqtcompany.com> | 2015-02-13 15:45:19 +0100 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2015-02-13 15:01:39 +0000 |
commit | 5442d144b65efd873e851f540512c2c19c010cba (patch) | |
tree | bfd43da7fd3e301c89b861c8dea8f347722f8972 /share | |
parent | ee4cbafb0b5471a1bfed16f9b16d9598a0afb78e (diff) | |
download | qt-creator-5442d144b65efd873e851f540512c2c19c010cba.tar.gz |
Debugger: Hide PdbEngine infrastructure from itself
Debuggers running inside the debugged application are weird.
Change-Id: I2452e3653221c8f585123852ea113bd2fdfd08ed
Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/debugger/pdbbridge.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/share/qtcreator/debugger/pdbbridge.py b/share/qtcreator/debugger/pdbbridge.py index 07bdbf660c..cae2d3c19c 100644 --- a/share/qtcreator/debugger/pdbbridge.py +++ b/share/qtcreator/debugger/pdbbridge.py @@ -5,7 +5,8 @@ import linecache import inspect import os -class Dumper: +def qdebug(cmd, args): + class Dumper: def __init__(self): pass @@ -273,12 +274,7 @@ class Dumper: sys.stdout.write("@\n" + stuff + "@\n") sys.stdout.flush() -def qdebug(options = None, - expanded = None, - typeformats = None, - individualformats = None, - watchers = None): - sys.stdout.write("\n(Pdb)\n") - sys.stdout.flush() -theDumper = Dumper() + d = Dumper() + method = getattr(d, cmd) + method(args) |