gdb/complaints.h - gdb

Macros defined

Source code

  1. /* Definitions for complaint handling during symbol reading in GDB.

  2.    Copyright (C) 1990-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 3 of the License, or
  7.    (at your option) any later version.

  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.

  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */


  14. #if !defined (COMPLAINTS_H)
  15. #define COMPLAINTS_H

  16. /* Opaque object used to track the number of complaints of a
  17.    particular category.  */
  18. struct complaints;

  19. /* Predefined categories.  */
  20. extern struct complaints *symfile_complaints;

  21. /* Register a complaint.  */
  22. extern void complaint (struct complaints **complaints,
  23.                        const char *fmt,
  24.                        ...) ATTRIBUTE_PRINTF (2, 3);
  25. extern void internal_complaint (struct complaints **complaints,
  26.                                 const char *file, int line,
  27.                                 const char *fmt,
  28.                                 ...) ATTRIBUTE_PRINTF (4, 5);

  29. /* Clear out / initialize all complaint counters that have ever been
  30.    incremented.  If LESS_VERBOSE is 1, be less verbose about
  31.    successive complaints, since the messages are appearing all
  32.    together during a command that is reporting a contiguous block of
  33.    complaints (rather than being interleaved with other messages).  If
  34.    noisy is 1, we are in a noisy command, and our caller will print
  35.    enough context for the user to figure it out.  */

  36. extern void clear_complaints (struct complaints **complaints,
  37.                               int less_verbose, int noisy);


  38. #endif /* !defined (COMPLAINTS_H) */