1/* Definitions and documentation for the codes used by the Tree Browser. 2 Copyright (C) 2002, 2007 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 3, 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 COPYING3. If not see 19<http://www.gnu.org/licenses/>. */ 20 21/* First field in the following declarations is the code of the command 22 used by the tree browser. 23 Second field is what is parsed in order to recognize a command. 24 Third field is used for printing the help message. */ 25 26 27/* Misc. commands. */ 28DEFTBCODE (TB_EXIT, "x", "Exits tree-browser.") 29DEFTBCODE (TB_QUIT, "q", "Exits tree-browser.") 30DEFTBCODE (TB_HELP, "h", "Prints this help message.") 31DEFTBCODE (TB_UPDATE_UP, "update", "Update information about parent expressions.") 32DEFTBCODE (TB_VERBOSE, "verbose", "Sets/unsets verbose mode (default is on).") 33 34/* Walking commands. */ 35DEFTBCODE (TB_FUN, "fun", "Go to the current function declaration.") 36DEFTBCODE (TB_NEXT, "nx", "Go to the next expression in a BIND_EXPR.") 37DEFTBCODE (TB_PREV, "pr", "Go to the previous expression in a BIND_EXPR.") 38DEFTBCODE (TB_UP, "up", "Go to the parent tree node.") 39DEFTBCODE (TB_LAST, "last", "Go to the last expression in a BIND_EXPR.") 40DEFTBCODE (TB_FIRST, "first","Go to the first expression in a BIND_EXPR.") 41DEFTBCODE (TB_HPREV, "hpr", "Go to the previous visited node (history previous).") 42 43/* Fields accessors. */ 44DEFTBCODE (TB_CHILD_0, "arg0", "Child 0.") 45DEFTBCODE (TB_CHILD_1, "arg1", "Child 1.") 46DEFTBCODE (TB_CHILD_2, "arg2", "Child 2.") 47DEFTBCODE (TB_CHILD_3, "arg3", "Child 3.") 48DEFTBCODE (TB_DECL_SAVED_TREE, "decl_saved_tree", "Body of a function.") 49DEFTBCODE (TB_TYPE, "type", "Field accessor.") 50DEFTBCODE (TB_SIZE, "size", "Field accessor.") 51DEFTBCODE (TB_UNIT_SIZE, "unit_size", "Field accessor.") 52DEFTBCODE (TB_OFFSET, "offset", "Field accessor.") 53DEFTBCODE (TB_BIT_OFFSET, "bit_offset", "Field accessor.") 54DEFTBCODE (TB_CONTEXT, "context", "Field accessor.") 55DEFTBCODE (TB_ATTRIBUTES, "attributes", "Field accessor.") 56DEFTBCODE (TB_ABSTRACT_ORIGIN, "abstract_origin", "Field accessor.") 57DEFTBCODE (TB_ARGUMENTS, "arguments", "Field accessor.") 58DEFTBCODE (TB_RESULT, "result", "Field accessor.") 59DEFTBCODE (TB_INITIAL, "initial", "Field accessor.") 60DEFTBCODE (TB_ARG_TYPE, "arg-type", "Field accessor.") 61DEFTBCODE (TB_ARG_TYPE_AS_WRITTEN, "arg-type-as-written", "Field accessor.") 62DEFTBCODE (TB_CHAIN, "chain", "Field accessor.") 63DEFTBCODE (TB_VALUES, "values", "Field accessor.") 64DEFTBCODE (TB_DOMAIN, "domain", "Field accessor.") 65DEFTBCODE (TB_METHOD_BASE_TYPE, "method_basetype", "Field accessor.") 66DEFTBCODE (TB_FIELDS, "fields", "Field accessor.") 67DEFTBCODE (TB_ARG_TYPES, "arg-types", "Field accessor.") 68DEFTBCODE (TB_BASETYPE, "basetype", "Field accessor.") 69DEFTBCODE (TB_POINTER_TO_THIS, "pointer_to_this", "Field accessor.") 70DEFTBCODE (TB_REFERENCE_TO_THIS,"reference_to_this", "Field accessor.") 71DEFTBCODE (TB_VARS, "vars", "Field accessor.") 72DEFTBCODE (TB_SUPERCONTEXT, "supercontext", "Field accessor.") 73DEFTBCODE (TB_BODY, "body", "Field accessor.") 74DEFTBCODE (TB_SUBBLOCKS, "subblocks", "Field accessor.") 75DEFTBCODE (TB_BLOCK, "block", "Field accessor.") 76DEFTBCODE (TB_REAL, "real", "Field accessor.") 77DEFTBCODE (TB_IMAG, "imag", "Field accessor.") 78DEFTBCODE (TB_PURPOSE, "purpose", "Field accessor.") 79DEFTBCODE (TB_VALUE, "value", "Field accessor.") 80DEFTBCODE (TB_ELT, "elt", "Field accessor.") 81DEFTBCODE (TB_MIN, "min", "Field accessor.") 82DEFTBCODE (TB_MAX, "max", "Field accessor.") 83 84/* Searching commands. */ 85DEFTBCODE (TB_SEARCH_CODE, "sc", "Search a node having a TREE_CODE given as a parameter.") 86DEFTBCODE (TB_SEARCH_NAME, "sn", "Search an identifier having a name given as a parameter.") 87 88/* Printing commands. */ 89DEFTBCODE (TB_PRETTY_PRINT, "pp", "Pretty print current node.") 90DEFTBCODE (TB_PRINT, "p", "Prints the current node.") 91 92 93/* 94Local variables: 95mode:c 96End: 97*/ 98