19573673dSchristos /* Definition of kinds of records in section .debug_gdb_scripts. 29573673dSchristos 3*cb63e24eSchristos Copyright (C) 2014-2024 Free Software Foundation, Inc. 49573673dSchristos 59573673dSchristos This file is part of GDB. 69573673dSchristos 79573673dSchristos This program is free software; you can redistribute it and/or modify 89573673dSchristos it under the terms of the GNU General Public License as published by 99573673dSchristos the Free Software Foundation; either version 3 of the License, or 109573673dSchristos (at your option) any later version. 119573673dSchristos 129573673dSchristos This program is distributed in the hope that it will be useful, 139573673dSchristos but WITHOUT ANY WARRANTY; without even the implied warranty of 149573673dSchristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 159573673dSchristos GNU General Public License for more details. 169573673dSchristos 179573673dSchristos You should have received a copy of the GNU General Public License 189573673dSchristos along with this program. If not, see <http://www.gnu.org/licenses/>. */ 199573673dSchristos 209573673dSchristos #ifndef GDB_SECTION_SCRIPTS_H 219573673dSchristos #define GDB_SECTION_SCRIPTS_H 229573673dSchristos 239573673dSchristos /* Each entry in section .debug_gdb_scripts begins with a byte that is used to 249573673dSchristos identify the entry. This byte is to use as we choose. 259573673dSchristos 0 is reserved so that it is never used (to catch errors). 269573673dSchristos It is recommended to avoid ASCII values 32-127 to help catch (most) cases 279573673dSchristos of forgetting to include this byte. 289573673dSchristos Other unused values needn't specify different scripting languages, 299573673dSchristos but we have no need for anything else at the moment. 309573673dSchristos 319573673dSchristos These values are defined as macros so that they can be used in embedded 329573673dSchristos asms and assembler source files. */ 339573673dSchristos 349573673dSchristos /* Reserved. */ 359573673dSchristos #define SECTION_SCRIPT_ID_NEVER_USE 0 369573673dSchristos 379573673dSchristos /* The record is a nul-terminated file name to load as a python file. */ 389573673dSchristos #define SECTION_SCRIPT_ID_PYTHON_FILE 1 399573673dSchristos 409573673dSchristos /* Native GDB scripts are not currently supported in .debug_gdb_scripts, 419573673dSchristos but we reserve a value for it. */ 429573673dSchristos /*#define SECTION_SCRIPT_ID_GDB_FILE 2*/ 439573673dSchristos 449573673dSchristos /* The record is a nul-terminated file name to load as a guile(scheme) 459573673dSchristos file. */ 469573673dSchristos #define SECTION_SCRIPT_ID_SCHEME_FILE 3 479573673dSchristos 489573673dSchristos /* The record is a nul-terminated string. 499573673dSchristos The first line is the name of the script. 509573673dSchristos Subsequent lines are interpreted as a python script. */ 519573673dSchristos #define SECTION_SCRIPT_ID_PYTHON_TEXT 4 529573673dSchristos 539573673dSchristos /* Native GDB scripts are not currently supported in .debug_gdb_scripts, 549573673dSchristos but we reserve a value for it. */ 559573673dSchristos /*#define SECTION_SCRIPT_ID_GDB_TEXT 5*/ 569573673dSchristos 579573673dSchristos /* The record is a nul-terminated string. 589573673dSchristos The first line is the name of the script. 599573673dSchristos Subsequent lines are interpreted as a guile(scheme) script. */ 609573673dSchristos #define SECTION_SCRIPT_ID_SCHEME_TEXT 6 619573673dSchristos 629573673dSchristos #endif /* GDB_SECTION_SCRIPTS_H */ 63