Commit d4bdae9a authored by hjk's avatar hjk
Browse files

Debugger: Make dumper reload with Python 2.x



Change-Id: If23573fab0f951bed0f86b70500dd7e9862df887
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 61c49a12
...@@ -2043,7 +2043,12 @@ registerCommand("threadnames", threadnames) ...@@ -2043,7 +2043,12 @@ registerCommand("threadnames", threadnames)
def reloadDumper(arg): def reloadDumper(arg):
for mod in dumpermodules: for mod in dumpermodules:
importlib.reload(sys.modules[mod]) m = sys.modules[mod]
if sys.version_info[0] >= 3:
importlib.reload(m)
else:
reload(m)
bbsetup() bbsetup()
registerCommand("reload", reloadDumper) registerCommand("reload", reloadDumper)
......
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