remote debugging a multi-threaded program with signal

Atsushi Nemoto anemo@mba.ocn.ne.jp
Fri Mar 19 00:09:00 GMT 2004


>>>>> On Thu, 4 Mar 2004 17:28:00 -0500, Daniel Jacobowitz <drow@false.org> said:
> 	* infrun.c (handle_inferior_event): Pass nostop signals to the
> 	correct thread.
...
> -	  if (printed)
> -	    target_terminal_inferior ();
> -

BTW, it would be better to move those lines to the preceding #if 0 block? :-)

/* ??rehrauer: I don't understand the rationale for this code.  If the
...
   For now, remove the message altogether. */
#if 0
	  printed = 1;
	  target_terminal_ours_for_output ();
	  printf_filtered ("\nProgram received signal %s, %s.\n",
			   target_signal_to_name (stop_signal),
			   target_signal_to_string (stop_signal));
	  gdb_flush (gdb_stdout);
#endif

---
Atsushi Nemoto



More information about the Gdb-patches mailing list