diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-09-24 23:40:33 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-09-24 23:40:33 -0600 |
| commit | 79b3a4f57f269f6243177a1bf0073646fef61413 (patch) | |
| tree | 604e97b63d406ba0b67b1a622ace4154891869fd /sim/gdbstub.py | |
| parent | d4d9f5296b193f80ee7fc2e42e52d974249d09e0 (diff) | |
sim: fix silent fopen() fail
Diffstat (limited to 'sim/gdbstub.py')
| -rw-r--r-- | sim/gdbstub.py | 5 |
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'))) |
