diff options
author | Andrew Burgess <aburgess@redhat.com> | 2025-06-12 14:29:16 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2025-06-19 10:31:14 +0100 |
commit | d8e6b67b18d1864a7ca1bd0bb4fabe949fad2135 (patch) | |
tree | 6d81b06bf5ef8efdb95792611fedefd9d6ac5c11 /gdb/testsuite/gdb.python/py-missing-debug.c | |
parent | 86a5d1eb9b03ff391a551bf5594c0aa9898f9989 (diff) | |
download | binutils-d8e6b67b18d1864a7ca1bd0bb4fabe949fad2135.zip binutils-d8e6b67b18d1864a7ca1bd0bb4fabe949fad2135.tar.gz binutils-d8e6b67b18d1864a7ca1bd0bb4fabe949fad2135.tar.bz2 |
gdb/python: introduce gdb.warning() function
This commit adds a new gdb.warning() function. This function takes a
string and then calls GDB's internal warning() function. This will
display the string as a warning.
Using gdb.warning() means that the message will get the new emoji
prefix if the user has that feature turned on. Also, the message will
be sent to gdb.STDERR without the user having to remember to print to
the correct stream.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/testsuite/gdb.python/py-missing-debug.c')
0 files changed, 0 insertions, 0 deletions