tree-browser.def 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /* Definitions and documentation for the codes used by the Tree Browser.
  2. Copyright (C) 2002-2015 Free Software Foundation, Inc.
  3. Contributed by Sebastian Pop <s.pop@laposte.net>
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it under
  6. the terms of the GNU General Public License as published by the Free
  7. Software Foundation; either version 3, or (at your option) any later
  8. version.
  9. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. /* First field in the following declarations is the code of the command
  17. used by the tree browser.
  18. Second field is what is parsed in order to recognize a command.
  19. Third field is used for printing the help message. */
  20. /* Misc. commands. */
  21. DEFTBCODE (TB_EXIT, "x", "Exits tree-browser.")
  22. DEFTBCODE (TB_QUIT, "q", "Exits tree-browser.")
  23. DEFTBCODE (TB_HELP, "h", "Prints this help message.")
  24. DEFTBCODE (TB_UPDATE_UP, "update", "Update information about parent expressions.")
  25. DEFTBCODE (TB_VERBOSE, "verbose", "Sets/unsets verbose mode (default is on).")
  26. /* Walking commands. */
  27. DEFTBCODE (TB_FUN, "fun", "Go to the current function declaration.")
  28. DEFTBCODE (TB_NEXT, "nx", "Go to the next expression in a BIND_EXPR.")
  29. DEFTBCODE (TB_PREV, "pr", "Go to the previous expression in a BIND_EXPR.")
  30. DEFTBCODE (TB_UP, "up", "Go to the parent tree node.")
  31. DEFTBCODE (TB_LAST, "last", "Go to the last expression in a BIND_EXPR.")
  32. DEFTBCODE (TB_FIRST, "first","Go to the first expression in a BIND_EXPR.")
  33. DEFTBCODE (TB_HPREV, "hpr", "Go to the previous visited node (history previous).")
  34. /* Fields accessors. */
  35. DEFTBCODE (TB_CHILD_0, "arg0", "Child 0.")
  36. DEFTBCODE (TB_CHILD_1, "arg1", "Child 1.")
  37. DEFTBCODE (TB_CHILD_2, "arg2", "Child 2.")
  38. DEFTBCODE (TB_CHILD_3, "arg3", "Child 3.")
  39. DEFTBCODE (TB_DECL_SAVED_TREE, "decl_saved_tree", "Body of a function.")
  40. DEFTBCODE (TB_TYPE, "type", "Field accessor.")
  41. DEFTBCODE (TB_SIZE, "size", "Field accessor.")
  42. DEFTBCODE (TB_UNIT_SIZE, "unit_size", "Field accessor.")
  43. DEFTBCODE (TB_OFFSET, "offset", "Field accessor.")
  44. DEFTBCODE (TB_BIT_OFFSET, "bit_offset", "Field accessor.")
  45. DEFTBCODE (TB_CONTEXT, "context", "Field accessor.")
  46. DEFTBCODE (TB_ATTRIBUTES, "attributes", "Field accessor.")
  47. DEFTBCODE (TB_ABSTRACT_ORIGIN, "abstract_origin", "Field accessor.")
  48. DEFTBCODE (TB_ARGUMENTS, "arguments", "Field accessor.")
  49. DEFTBCODE (TB_RESULT, "result", "Field accessor.")
  50. DEFTBCODE (TB_INITIAL, "initial", "Field accessor.")
  51. DEFTBCODE (TB_ARG_TYPE, "arg-type", "Field accessor.")
  52. DEFTBCODE (TB_ARG_TYPE_AS_WRITTEN, "arg-type-as-written", "Field accessor.")
  53. DEFTBCODE (TB_CHAIN, "chain", "Field accessor.")
  54. DEFTBCODE (TB_VALUES, "values", "Field accessor.")
  55. DEFTBCODE (TB_DOMAIN, "domain", "Field accessor.")
  56. DEFTBCODE (TB_METHOD_BASE_TYPE, "method_basetype", "Field accessor.")
  57. DEFTBCODE (TB_FIELDS, "fields", "Field accessor.")
  58. DEFTBCODE (TB_ARG_TYPES, "arg-types", "Field accessor.")
  59. DEFTBCODE (TB_BASETYPE, "basetype", "Field accessor.")
  60. DEFTBCODE (TB_POINTER_TO_THIS, "pointer_to_this", "Field accessor.")
  61. DEFTBCODE (TB_REFERENCE_TO_THIS,"reference_to_this", "Field accessor.")
  62. DEFTBCODE (TB_VARS, "vars", "Field accessor.")
  63. DEFTBCODE (TB_SUPERCONTEXT, "supercontext", "Field accessor.")
  64. DEFTBCODE (TB_BODY, "body", "Field accessor.")
  65. DEFTBCODE (TB_SUBBLOCKS, "subblocks", "Field accessor.")
  66. DEFTBCODE (TB_BLOCK, "block", "Field accessor.")
  67. DEFTBCODE (TB_REAL, "real", "Field accessor.")
  68. DEFTBCODE (TB_IMAG, "imag", "Field accessor.")
  69. DEFTBCODE (TB_PURPOSE, "purpose", "Field accessor.")
  70. DEFTBCODE (TB_VALUE, "value", "Field accessor.")
  71. DEFTBCODE (TB_ELT, "elt", "Field accessor.")
  72. DEFTBCODE (TB_MIN, "min", "Field accessor.")
  73. DEFTBCODE (TB_MAX, "max", "Field accessor.")
  74. /* Searching commands. */
  75. DEFTBCODE (TB_SEARCH_CODE, "sc", "Search a node having a TREE_CODE given as a parameter.")
  76. DEFTBCODE (TB_SEARCH_NAME, "sn", "Search an identifier having a name given as a parameter.")
  77. /* Printing commands. */
  78. DEFTBCODE (TB_PRETTY_PRINT, "pp", "Pretty print current node.")
  79. DEFTBCODE (TB_PRINT, "p", "Prints the current node.")
  80. /*
  81. Local variables:
  82. mode:c
  83. End:
  84. */