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