* objdump.c (SFILE): Add size field.
[deliverable/binutils-gdb.git] / gdb / complaints.c
index 49b9e59743e984e9ecbd5b6343cc8167b03113cd..e38038d26fb338979e7f5855cb402d6c3c47fc96 100644 (file)
@@ -15,12 +15,11 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
 #include "complaints.h"
 #include "gdbcmd.h"
-#include <varargs.h>
 
 /* Structure to manage complaints about symbol file contents.  */
 
@@ -59,14 +58,23 @@ extern int info_verbose;
 
 /* VARARGS */
 void
+#ifdef ANSI_PROTOTYPES
+complain (struct complaint *complaint, ...)
+#else
 complain (va_alist)
      va_dcl
+#endif
 {
   va_list args;
+#ifdef ANSI_PROTOTYPES
+  va_start (args, complaint);
+#else
   struct complaint *complaint;
 
   va_start (args);
   complaint = va_arg (args, struct complaint *);
+#endif
+
   complaint -> counter++;
   if (complaint -> next == NULL)
     {
@@ -109,6 +117,10 @@ complain (va_alist)
        puts_filtered ("...");
        wrap_here ("");
     }
+  /* If GDB dumps core, we'd like to see the complaints first.  Presumably
+     GDB will not be sending so many complaints that this becomes a
+     performance hog.  */
+  gdb_flush (gdb_stdout);
   va_end (args);
 }
 
This page took 0.023485 seconds and 4 git commands to generate.