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