Upgrade GDB from 7.3 to 7.4.1 on the vendor branch
[dragonfly.git] / contrib / gdb-7 / gdb / complaints.h
1 /* Definitions for complaint handling during symbol reading in GDB.
2
3    Copyright (C) 1990-1992, 1995, 1998, 2000, 2002, 2007-2012 Free
4    Software Foundation, Inc.
5
6    This file is part of GDB.
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 3 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
20
21
22 #if !defined (COMPLAINTS_H)
23 #define COMPLAINTS_H
24
25 /* Opaque object used to track the number of complaints of a
26    particular category.  */
27 struct complaints;
28
29 /* Predefined categories.  */
30 extern struct complaints *symfile_complaints;
31
32 /* Register a complaint.  */
33 extern void complaint (struct complaints **complaints,
34                        const char *fmt,
35                        ...) ATTRIBUTE_PRINTF (2, 3);
36 extern void internal_complaint (struct complaints **complaints,
37                                 const char *file, int line,
38                                 const char *fmt,
39                                 ...) ATTRIBUTE_PRINTF (4, 5);
40
41 /* Clear out / initialize all complaint counters that have ever been
42    incremented.  If LESS_VERBOSE is 1, be less verbose about
43    successive complaints, since the messages are appearing all
44    together during a command that is reporting a contiguous block of
45    complaints (rather than being interleaved with other messages).  If
46    noisy is 1, we are in a noisy command, and our caller will print
47    enough context for the user to figure it out.  */
48
49 extern void clear_complaints (struct complaints **complaints,
50                               int less_verbose, int noisy);
51
52
53 #endif /* !defined (COMPLAINTS_H) */