aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-12-26 14:21:28 -0700
committerTom Tromey <tom@tromey.com>2022-01-06 08:37:19 -0700
commit390abcd903a470c0d3ede640dcb0b7cb62ee9852 (patch)
tree46945aa38778d448dd45293182d7d690da115dbc /gdb/windows-nat.c
parent5bd1d4c158953c17ad33fdb34c0919f2b32ddc45 (diff)
downloadgdb-390abcd903a470c0d3ede640dcb0b7cb62ee9852.zip
gdb-390abcd903a470c0d3ede640dcb0b7cb62ee9852.tar.gz
gdb-390abcd903a470c0d3ede640dcb0b7cb62ee9852.tar.bz2
Use warning in windows-nat error messages
A warning in windows-nat.c can be converted to use the warning function. As a side effect, this arranges for the output to be sent to gdb_stderr.
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r--gdb/windows-nat.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 03447e0..47760b7 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -1905,11 +1905,8 @@ windows_nat_target::attach (const char *args, int from_tty)
pid = parse_pid_to_attach (args);
if (set_process_privilege (SE_DEBUG_NAME, TRUE) < 0)
- {
- printf_unfiltered ("Warning: Failed to get SE_DEBUG_NAME privilege\n");
- printf_unfiltered ("This can cause attach to "
- "fail on Windows NT/2K/XP\n");
- }
+ warning ("Failed to get SE_DEBUG_NAME privilege\n"
+ "This can cause attach to fail on Windows NT/2K/XP");
windows_init_thread_list ();
ok = DebugActiveProcess (pid);