1 /* Definitions for complaint handling during symbol reading in GDB.
3 Copyright 1990, 1991, 1992, 1995, 1998, 2000, 2002 Free Software
6 This file is part of GDB.
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 2 of the License, or
11 (at your option) any later version.
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.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
24 #if !defined (COMPLAINTS_H)
27 /* Opaque object used to track the number of complaints of a
28 particular category. */
31 /* Predefined categories. */
32 extern struct complaints
*symfile_complaints
;
34 /* Register a complaint. */
35 extern void complaint (struct complaints
**complaints
, const char *fmt
,
36 ...) ATTR_FORMAT (printf
, 2, 3);
37 extern void internal_complaint (struct complaints
**complaints
,
38 const char *file
, int line
, const char *fmt
,
39 ...) ATTR_FORMAT (printf
, 4, 5);
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. */
49 extern void clear_complaints (struct complaints
**complaints
,
50 int less_verbose
, int noisy
);
53 #endif /* !defined (COMPLAINTS_H) */
This page took 0.03542 seconds and 4 git commands to generate.