summaryrefslogtreecommitdiff
path: root/sim/gdbstub.py
diff options
context:
space:
mode:
Diffstat (limited to 'sim/gdbstub.py')
-rw-r--r--sim/gdbstub.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/gdbstub.py b/sim/gdbstub.py
index ccddab9..e7791bc 100644
--- a/sim/gdbstub.py
+++ b/sim/gdbstub.py
@@ -23,7 +23,10 @@ def fatal():
def do_output(text):
if text is None:
return not is_halted()
- elif not client:
+
+ print(text, file=sys.stderr, end='')
+
+ if not client:
return False
reply(b'O' + hexout(text.encode('ascii')))