aboutsummaryrefslogtreecommitdiff
path: root/include/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'include/gdb')
-rw-r--r--include/gdb/ChangeLog6
-rw-r--r--include/gdb/section-scripts.h16
2 files changed, 20 insertions, 2 deletions
diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog
index 79fd370..694cd5d 100644
--- a/include/gdb/ChangeLog
+++ b/include/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2015-01-31 Doug Evans <xdje42@gmail.com>
+
+ * section-scripts.h: Remove "future extension" comment.
+ (SECTION_SCRIPT_ID_PYTHON_TEXT): New macro.
+ (SECTION_SCRIPT_ID_SCHEME_TEXT): New macro.
+
2014-12-03 Joel Brobecker <brobecker@adacore.com>
* callback.h (struct host_callback_struct) <to_stat>: Renamed
diff --git a/include/gdb/section-scripts.h b/include/gdb/section-scripts.h
index c4b7a1c..effce62 100644
--- a/include/gdb/section-scripts.h
+++ b/include/gdb/section-scripts.h
@@ -28,8 +28,6 @@
Other unused values needn't specify different scripting languages,
but we have no need for anything else at the moment.
- Future extension: Include the contents of the script in the section.
-
These values are defined as macros so that they can be used in embedded
asms and assembler source files. */
@@ -47,4 +45,18 @@
file. */
#define SECTION_SCRIPT_ID_SCHEME_FILE 3
+/* The record is a nul-terminated string.
+ The first line is the name of the script.
+ Subsequent lines are interpreted as a python script. */
+#define SECTION_SCRIPT_ID_PYTHON_TEXT 4
+
+/* Native GDB scripts are not currently supported in .debug_gdb_scripts,
+ but we reserve a value for it. */
+/*#define SECTION_SCRIPT_ID_GDB_TEXT 5*/
+
+/* The record is a nul-terminated string.
+ The first line is the name of the script.
+ Subsequent lines are interpreted as a guile(scheme) script. */
+#define SECTION_SCRIPT_ID_SCHEME_TEXT 6
+
#endif /* GDB_SECTION_SCRIPTS_H */