GDB (API)
|
00001 /* Definitions for complaint handling during symbol reading in GDB. 00002 00003 Copyright (C) 1990-2013 Free Software Foundation, Inc. 00004 00005 This file is part of GDB. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00019 00020 00021 #if !defined (COMPLAINTS_H) 00022 #define COMPLAINTS_H 00023 00024 /* Opaque object used to track the number of complaints of a 00025 particular category. */ 00026 struct complaints; 00027 00028 /* Predefined categories. */ 00029 extern struct complaints *symfile_complaints; 00030 00031 /* Register a complaint. */ 00032 extern void complaint (struct complaints **complaints, 00033 const char *fmt, 00034 ...) ATTRIBUTE_PRINTF (2, 3); 00035 extern void internal_complaint (struct complaints **complaints, 00036 const char *file, int line, 00037 const char *fmt, 00038 ...) ATTRIBUTE_PRINTF (4, 5); 00039 00040 /* Clear out / initialize all complaint counters that have ever been 00041 incremented. If LESS_VERBOSE is 1, be less verbose about 00042 successive complaints, since the messages are appearing all 00043 together during a command that is reporting a contiguous block of 00044 complaints (rather than being interleaved with other messages). If 00045 noisy is 1, we are in a noisy command, and our caller will print 00046 enough context for the user to figure it out. */ 00047 00048 extern void clear_complaints (struct complaints **complaints, 00049 int less_verbose, int noisy); 00050 00051 00052 #endif /* !defined (COMPLAINTS_H) */