public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Use warning in windows-nat error messages
@ 2022-01-06 15:44 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-01-06 15:44 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=390abcd903a470c0d3ede640dcb0b7cb62ee9852

commit 390abcd903a470c0d3ede640dcb0b7cb62ee9852
Author: Tom Tromey <tom@tromey.com>
Date:   Sun Dec 26 14:21:28 2021 -0700

    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.

Diff:
---
 gdb/windows-nat.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 03447e0922a..47760b7b8b8 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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-06 15:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06 15:44 [binutils-gdb] Use warning in windows-nat error messages Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).