This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Move language-changed message to verbose, in async mode too


Diffing logs of py-mi.exp in sync vs async mode
shows that this change of Daniel's:

-(gdb) 
+~"Current language:  auto\n"
+~"The current source language is \"auto; currently c++\".\n"
 PASS: gdb.python/py-mi.exp: mi runto main

 <http://sourceware.org/ml/gdb-patches/2009-11/msg00031.html>

was never ported to async mode.

That's what this patch does.  Tested on x86_64-linux and
applied.

-- 
Pedro Alves

2011-05-20  Pedro Alves  <pedro@codesourcery.com>

	gdb/
	* inf-loop.c (inferior_event_handler): Only output a message if
	verbose.

---
 gdb/inf-loop.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: src/gdb/inf-loop.c
===================================================================
--- src.orig/gdb/inf-loop.c	2011-05-20 15:52:58.328819002 +0100
+++ src/gdb/inf-loop.c	2011-05-20 19:02:37.678819001 +0100
@@ -121,7 +121,8 @@ inferior_event_handler (enum inferior_ev
       else
 	do_all_continuations ();
 
-      if (current_language != expected_language
+      if (info_verbose
+	  && current_language != expected_language
 	  && language_mode == language_mode_auto)
 	language_info (1);	/* Print what changed.  */
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]