diff options
author | Tom de Vries <tdevries@suse.de> | 2024-02-21 10:46:08 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-02-21 10:46:08 +0100 |
commit | 84a227694d7b97bb4d09786dcfcc3d7c0ca16d4f (patch) | |
tree | 5300e363ac659069fd025d04a119608720cfc6c3 /gdb/python | |
parent | 3c3fe724f5f579b76e8adafb91517fbd6f34ecdc (diff) | |
download | gdb-84a227694d7b97bb4d09786dcfcc3d7c0ca16d4f.zip gdb-84a227694d7b97bb4d09786dcfcc3d7c0ca16d4f.tar.gz gdb-84a227694d7b97bb4d09786dcfcc3d7c0ca16d4f.tar.bz2 |
[gdb/dap] Flush after printing in log_stack
I noticed that function log flushes the dap log file after printing, but
that function log_stack doesn't.
Fix this by also flushing the dap log file in log_stack.
Tested on aarch64-linux.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/lib/gdb/dap/startup.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/python/lib/gdb/dap/startup.py b/gdb/python/lib/gdb/dap/startup.py index daaeb28..f20c541 100644 --- a/gdb/python/lib/gdb/dap/startup.py +++ b/gdb/python/lib/gdb/dap/startup.py @@ -178,6 +178,7 @@ def log_stack(level=LogLevel.DEFAULT): """Log a stack trace to the log file, if logging is enabled.""" if dap_log.log_file is not None and level <= _log_level.value: traceback.print_exc(file=dap_log.log_file) + dap_log.log_file.flush() @in_gdb_thread |