This is the mail archive of the gdb-patches@sourceware.cygnus.com 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]

[eliz@is.elta.co.il: Empty header printed by "handle" command]


------- Start of forwarded message -------
Date: Sun, 27 Jun 1999 19:14:25 +0300 (IDT)
From: Eli Zaretskii <eliz@is.elta.co.il>
X-Sender: eliz@is
To: DJ Delorie <dj@delorie.com>
cc: Robert Hoehne <robert.hoehne@gmx.net>
Subject: Empty header printed by "handle" command
Content-Type: TEXT/PLAIN; charset=US-ASCII

1999-06-26  Eli Zaretskii  <eliz@is.elta.co.il>

	* infrun.c (handle_command): Don't print header if no signal had
	its handling changed.

*** ./gdb/infrun.c~1	Mon Mar  1 04:51:52 1999
- --- ./gdb/infrun.c	Sat May 22 09:06:26 1999
*************** Are you sure you want to change it? ",
*** 3328,3339 ****
  
    if (from_tty)
      {
        /* Show the results.  */
- -       sig_print_header ();
        for (signum = 0; signum < nsigs; signum++)
  	{
  	  if (sigs[signum])
  	    {
  	      sig_print_info (signum);
  	    }
  	}
- --- 3328,3345 ----
  
    if (from_tty)
      {
+       int header_printed = 0;
+ 
        /* Show the results.  */
        for (signum = 0; signum < nsigs; signum++)
  	{
  	  if (sigs[signum])
  	    {
+ 	      if (!header_printed)
+ 		{
+ 		  sig_print_header ();
+ 		  header_printed = 1;
+ 		}
  	      sig_print_info (signum);
  	    }
  	}
------- End of forwarded message -------

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