aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2025-12-06 15:35:24 -0600
committerTom Tromey <tom@tromey.com>2026-02-09 08:15:36 -0700
commitaed0772e66e921c235165480276600a7c7dfc048 (patch)
tree6063e24a6681e178dfa4520c1d5891addf887017 /gdb/python
parent0391f70c7d9d8cff7a2f651ba8b9b015d0e9ea5d (diff)
downloadbinutils-aed0772e66e921c235165480276600a7c7dfc048.tar.gz
binutils-aed0772e66e921c235165480276600a7c7dfc048.tar.bz2
binutils-aed0772e66e921c235165480276600a7c7dfc048.zip
Add a new logging_file implementation
This adds a new logging_file subclass of ui_file. This new subclass handles the details of logging, by consulting the relevant globals. I think a dependency on globals is warranted here, because the logging settings themselves are global. The idea of this approach is that rather than modifying the output pipeline in response to logging commands, a logging_file will simply always be in the pipeline, and will then react to the appropriate settings. ("Appropriate" because there are tests that the logger doesn't immediately react to changes, so it captures settings at the moment logging starts.) The new code isn't actually used yet -- nothing in this patch constructs a logging_file. It's separate for easier review. Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions