public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v1 07/36] Guile extension language: extension.c additions
@ 2013-12-24 19:03 Doug Evans
  0 siblings, 0 replies; only message in thread
From: Doug Evans @ 2013-12-24 19:03 UTC (permalink / raw)
  To: gdb-patches

This patch contains the additions to extension.[ch].

2013-12-24  Doug Evans  <xdje42@gmail.com>

	* extension.c: #include "guile/guile.h".
	(extension_languages): Add guile.
	(get_ext_lang_defn): Handle EXT_LANG_GDB.
	* extension.h (enum extension_language): New value EXT_LANG_GUILE.

diff --git a/gdb/extension.c b/gdb/extension.c
index 36537c6..1860a4b 100644
--- a/gdb/extension.c
+++ b/gdb/extension.c
@@ -28,6 +28,7 @@
 #include "observer.h"
 #include "cli/cli-script.h"
 #include "python/python.h"
+#include "guile/guile.h"
 
 /* Iterate over all external extension languages, regardless of whether the
    support has been compiled in or not.
@@ -98,6 +99,7 @@ static const struct extension_language_defn * const extension_languages[] =
 {
   /* To preserve existing behaviour, python should always appear first.  */
   &extension_language_python,
+  &extension_language_guile,
   NULL
 };
 
diff --git a/gdb/extension.h b/gdb/extension.h
index b80c5ff..83ade6c 100644
--- a/gdb/extension.h
+++ b/gdb/extension.h
@@ -53,7 +53,8 @@ enum extension_language
   {
     EXT_LANG_NONE,
     EXT_LANG_GDB,
-    EXT_LANG_PYTHON
+    EXT_LANG_PYTHON,
+    EXT_LANG_GUILE
   };
 
 /* Extension language frame-filter status return values.  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-24 19:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-24 19:03 [PATCH v1 07/36] Guile extension language: extension.c additions Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).