dbgcnt.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* Debug counter for debugging support
  2. Copyright (C) 2006-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>.
  15. See dbgcnt.def for usage information. */
  16. #ifndef GCC_DBGCNT_H
  17. #define GCC_DBGCNT_H
  18. #define DEBUG_COUNTER(a) a,
  19. enum debug_counter {
  20. #include "dbgcnt.def"
  21. debug_counter_number_of_counters
  22. };
  23. #undef DEBUG_COUNTER
  24. extern bool dbg_cnt_is_enabled (enum debug_counter index);
  25. extern bool dbg_cnt (enum debug_counter index);
  26. extern void dbg_cnt_process_opt (const char *arg);
  27. extern void dbg_cnt_list_all_counters (void);
  28. #endif /* GCC_DBGCNT_H */