Home | History | Annotate | Download | only in gdb
      1 /* Definition of kinds of records in section .debug_gdb_scripts.
      2 
      3    Copyright (C) 2014 Free Software Foundation, Inc.
      4 
      5    This file is part of GDB.
      6 
      7    This program is free software; you can redistribute it and/or modify
      8    it under the terms of the GNU General Public License as published by
      9    the Free Software Foundation; either version 3 of the License, or
     10    (at your option) any later version.
     11 
     12    This program is distributed in the hope that it will be useful,
     13    but WITHOUT ANY WARRANTY; without even the implied warranty of
     14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15    GNU General Public License for more details.
     16 
     17    You should have received a copy of the GNU General Public License
     18    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
     19 
     20 #ifndef GDB_SECTION_SCRIPTS_H
     21 #define GDB_SECTION_SCRIPTS_H
     22 
     23 /* Each entry in section .debug_gdb_scripts begins with a byte that is used to
     24    identify the entry.  This byte is to use as we choose.
     25    0 is reserved so that it is never used (to catch errors).
     26    It is recommended to avoid ASCII values 32-127 to help catch (most) cases
     27    of forgetting to include this byte.
     28    Other unused values needn't specify different scripting languages,
     29    but we have no need for anything else at the moment.
     30 
     31    Future extension: Include the contents of the script in the section.
     32 
     33    These values are defined as macros so that they can be used in embedded
     34    asms and assembler source files.  */
     35 
     36 /* Reserved.  */
     37 #define SECTION_SCRIPT_ID_NEVER_USE 0
     38 
     39 /* The record is a nul-terminated file name to load as a python file.  */
     40 #define SECTION_SCRIPT_ID_PYTHON_FILE 1
     41 
     42 /* Native GDB scripts are not currently supported in .debug_gdb_scripts,
     43    but we reserve a value for it.  */
     44 /*#define SECTION_SCRIPT_ID_GDB_FILE 2*/
     45 
     46 /* The record is a nul-terminated file name to load as a guile(scheme)
     47    file.  */
     48 #define SECTION_SCRIPT_ID_SCHEME_FILE 3
     49 
     50 #endif /* GDB_SECTION_SCRIPTS_H */
     51