GDB (API)
/home/stan/gdb/src/gdb/stap-probe.h
Go to the documentation of this file.
00001 /* SystemTap probe support for GDB.
00002 
00003    Copyright (C) 2012-2013 Free Software Foundation, Inc.
00004 
00005    This file is part of GDB.
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 3 of the License, or
00010    (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00019 
00020 #if !defined (STAP_PROBE_H)
00021 #define STAP_PROBE_H 1
00022 
00023 /* Structure which holds information about the parsing process of one probe's
00024    argument.  */
00025 
00026 struct stap_parse_info
00027 {
00028   /* The probe's argument in a string format.  */
00029   const char *arg;
00030 
00031   /* A pointer to the full chain of arguments.  This is useful for printing
00032      error messages.  The parser functions should not modify this argument
00033      directly; instead, they should use the ARG pointer above.  */
00034   const char *saved_arg;
00035 
00036   /* The expected argument type (bitness), as defined in the probe's
00037      argument.  For instance, if the argument begins with `-8@', it means
00038      the bitness is 64-bit signed.  In this case, ARG_TYPE would represent
00039      the type `int64_t'.  */
00040   struct type *arg_type;
00041 
00042   /* A pointer to the current gdbarch.  */
00043   struct gdbarch *gdbarch;
00044 
00045   /* Greater than zero if we are inside a parenthesized expression.  Useful
00046      for knowing when to skip spaces or not.  */
00047   int inside_paren_p;
00048 };
00049 
00050 #endif /* !defined (STAP_PROBE_H) */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines