From 79b3a4f57f269f6243177a1bf0073646fef61413 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 24 Sep 2023 23:40:33 -0600 Subject: sim: fix silent fopen() fail --- sim/gdbstub.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sim/gdbstub.py') 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'))) -- cgit v1.2.3