debug.c 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /* Do-nothing debug hooks for GCC.
  2. Copyright (C) 2001-2015 Free Software Foundation, Inc.
  3. This program is free software; you can redistribute it and/or modify it
  4. under the terms of the GNU General Public License as published by the
  5. Free Software Foundation; either version 3, or (at your option) any
  6. later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; see the file COPYING3. If not see
  13. <http://www.gnu.org/licenses/>. */
  14. #include "config.h"
  15. #include "system.h"
  16. #include "coretypes.h"
  17. #include "tm.h"
  18. #include "hash-set.h"
  19. #include "machmode.h"
  20. #include "vec.h"
  21. #include "double-int.h"
  22. #include "input.h"
  23. #include "alias.h"
  24. #include "symtab.h"
  25. #include "wide-int.h"
  26. #include "inchash.h"
  27. #include "tree.h"
  28. #include "debug.h"
  29. /* The do-nothing debug hooks. */
  30. const struct gcc_debug_hooks do_nothing_debug_hooks =
  31. {
  32. debug_nothing_charstar,
  33. debug_nothing_charstar,
  34. debug_nothing_void,
  35. debug_nothing_int_charstar,
  36. debug_nothing_int_charstar,
  37. debug_nothing_int_charstar,
  38. debug_nothing_int,
  39. debug_nothing_int_int, /* begin_block */
  40. debug_nothing_int_int, /* end_block */
  41. debug_true_const_tree, /* ignore_block */
  42. debug_nothing_int_charstar_int_bool, /* source_line */
  43. debug_nothing_int_charstar, /* begin_prologue */
  44. debug_nothing_int_charstar, /* end_prologue */
  45. debug_nothing_int_charstar, /* begin_epilogue */
  46. debug_nothing_int_charstar, /* end_epilogue */
  47. debug_nothing_tree, /* begin_function */
  48. debug_nothing_int, /* end_function */
  49. debug_nothing_tree, /* register_main_translation_unit */
  50. debug_nothing_tree, /* function_decl */
  51. debug_nothing_tree, /* global_decl */
  52. debug_nothing_tree_int, /* type_decl */
  53. debug_nothing_tree_tree_tree_bool, /* imported_module_or_decl */
  54. debug_nothing_tree, /* deferred_inline_function */
  55. debug_nothing_tree, /* outlining_inline_function */
  56. debug_nothing_rtx_code_label, /* label */
  57. debug_nothing_int, /* handle_pch */
  58. debug_nothing_rtx_insn, /* var_location */
  59. debug_nothing_void, /* switch_text_section */
  60. debug_nothing_tree_tree, /* set_name */
  61. 0, /* start_end_main_source_file */
  62. TYPE_SYMTAB_IS_ADDRESS /* tree_type_symtab_field */
  63. };
  64. /* This file contains implementations of each debug hook that do
  65. nothing. */
  66. void
  67. debug_nothing_void (void)
  68. {
  69. }
  70. void
  71. debug_nothing_tree (tree decl ATTRIBUTE_UNUSED)
  72. {
  73. }
  74. void
  75. debug_nothing_tree_tree (tree t1 ATTRIBUTE_UNUSED,
  76. tree t2 ATTRIBUTE_UNUSED)
  77. {
  78. }
  79. void
  80. debug_nothing_tree_tree_tree_bool (tree t1 ATTRIBUTE_UNUSED,
  81. tree t2 ATTRIBUTE_UNUSED,
  82. tree t3 ATTRIBUTE_UNUSED,
  83. bool b1 ATTRIBUTE_UNUSED)
  84. {
  85. }
  86. bool
  87. debug_true_const_tree (const_tree block ATTRIBUTE_UNUSED)
  88. {
  89. return true;
  90. }
  91. void
  92. debug_nothing_rtx_insn (rtx_insn *insn ATTRIBUTE_UNUSED)
  93. {
  94. }
  95. void
  96. debug_nothing_rtx_code_label (rtx_code_label *label ATTRIBUTE_UNUSED)
  97. {
  98. }
  99. void
  100. debug_nothing_charstar (const char *main_filename ATTRIBUTE_UNUSED)
  101. {
  102. }
  103. void
  104. debug_nothing_int_charstar (unsigned int line ATTRIBUTE_UNUSED,
  105. const char *text ATTRIBUTE_UNUSED)
  106. {
  107. }
  108. void
  109. debug_nothing_int_charstar_int_bool (unsigned int line ATTRIBUTE_UNUSED,
  110. const char *text ATTRIBUTE_UNUSED,
  111. int discriminator ATTRIBUTE_UNUSED,
  112. bool is_stmt ATTRIBUTE_UNUSED)
  113. {
  114. }
  115. void
  116. debug_nothing_int (unsigned int line ATTRIBUTE_UNUSED)
  117. {
  118. }
  119. void
  120. debug_nothing_int_int (unsigned int line ATTRIBUTE_UNUSED,
  121. unsigned int n ATTRIBUTE_UNUSED)
  122. {
  123. }
  124. void
  125. debug_nothing_tree_int (tree decl ATTRIBUTE_UNUSED,
  126. int local ATTRIBUTE_UNUSED)
  127. {
  128. }