Commit | Line | Data |
---|---|---|
c906108c | 1 | /* Definitions for complaint handling during symbol reading in GDB. |
b9caf505 | 2 | |
4c38e0a4 JB |
3 | Copyright (C) 1990, 1991, 1992, 1995, 1998, 2000, 2002, 2007, 2008, 2009, |
4 | 2010 Free Software Foundation, Inc. | |
c906108c | 5 | |
c5aa993b | 6 | This file is part of GDB. |
c906108c | 7 | |
c5aa993b JM |
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 | |
a9762ec7 | 10 | the Free Software Foundation; either version 3 of the License, or |
c5aa993b | 11 | (at your option) any later version. |
c906108c | 12 | |
c5aa993b JM |
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. | |
c906108c | 17 | |
c5aa993b | 18 | You should have received a copy of the GNU General Public License |
a9762ec7 | 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
c906108c SS |
20 | |
21 | ||
22 | #if !defined (COMPLAINTS_H) | |
23 | #define COMPLAINTS_H | |
24 | ||
b9caf505 AC |
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, const char *fmt, | |
34 | ...) ATTR_FORMAT (printf, 2, 3); | |
35 | extern void internal_complaint (struct complaints **complaints, | |
36 | const char *file, int line, const char *fmt, | |
37 | ...) ATTR_FORMAT (printf, 4, 5); | |
38 | ||
39 | /* Clear out / initialize all complaint counters that have ever been | |
40 | incremented. If LESS_VERBOSE is 1, be less verbose about | |
41 | successive complaints, since the messages are appearing all | |
42 | together during a command that is reporting a contiguous block of | |
43 | complaints (rather than being interleaved with other messages). If | |
44 | noisy is 1, we are in a noisy command, and our caller will print | |
45 | enough context for the user to figure it out. */ | |
46 | ||
47 | extern void clear_complaints (struct complaints **complaints, | |
48 | int less_verbose, int noisy); | |
49 | ||
c906108c | 50 | |
c5aa993b | 51 | #endif /* !defined (COMPLAINTS_H) */ |