#include "defs.h"
#include "complaints.h"
#include "gdbcmd.h"
+#ifdef ANSI_PROTOTYPES
+#include <stdarg.h>
+#else
#include <varargs.h>
+#endif
/* Structure to manage complaints about symbol file contents. */
/* 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;
- char *val;
va_start (args);
complaint = va_arg (args, struct complaint *);
+#endif
+
complaint -> counter++;
if (complaint -> next == NULL)
{
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);
}
complaint_series = sym_reading ? 1 + noisy : 0;
}
+void
_initialize_complaints ()
{
add_show_from_set