diff options
author | Doug Evans <xdje42@gmail.com> | 2014-06-03 00:29:49 -0700 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-06-03 00:29:49 -0700 |
commit | e698b8c41cbb2648a11a2ae806922c44d1482aed (patch) | |
tree | 4a3ded90e95596c985b7940cb82e50abd773d194 /gdb/Makefile.in | |
parent | fb1f94b09a3d12a231f6be8fadf421ab578dc4ba (diff) | |
download | gdb-e698b8c41cbb2648a11a2ae806922c44d1482aed.zip gdb-e698b8c41cbb2648a11a2ae806922c44d1482aed.tar.gz gdb-e698b8c41cbb2648a11a2ae806922c44d1482aed.tar.bz2 |
Add command support for Guile.
* Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
(SUBDIR_GUILE_SRCS): Add scm-cmd.c.
(scm-cmd.o): New rule.
* guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
(gdbscm_user_error_p): Declare.
(gdbscm_parse_command_name): Declare.
(gdbscm_valid_command_class_p): Declare.
(gdbscm_initialize_commands): Declare.
* guile/guile.c (initialize_gdb_module): Call
gdbscm_initialize_commands.
* guile/lib/gdb.scm: Export command symbols.
* guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
(throw-user-error): New function.
* guile/scm-cmd.c: New file.
* guile/scm-exception.c (user_error_symbol): New static global.
(gdbscm_user_error_p): New function.
(gdbscm_initialize_exceptions): Set user_error_symbol.
* scm-utils.c (gdbscm_gc_xstrdup): New function.
testsuite/
* gdb.guile/scm-cmd.c: New file.
* gdb.guile/scm-cmd.exp: New file.
doc/
* guile.texi (Guile API): Add entry for Commands In Guile.
(Basic Guile) <parse-and-eval>: Add reference.
(Basic Guile) <string->argv>: Move definition to Commands In Guile.
(GDB Scheme Data Types): Mention <gdb:command> object.
(Commands In Guile): New node.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 51aeeb3..6159918 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -288,6 +288,7 @@ SUBDIR_GUILE_OBS = \ scm-auto-load.o \ scm-block.o \ scm-breakpoint.o \ + scm-cmd.o \ scm-disasm.o \ scm-exception.o \ scm-frame.o \ @@ -312,6 +313,7 @@ SUBDIR_GUILE_SRCS = \ guile/scm-auto-load.c \ guile/scm-block.c \ guile/scm-breakpoint.c \ + guile/scm-cmd.c \ guile/scm-disasm.c \ guile/scm-exception.c \ guile/scm-frame.c \ @@ -2272,6 +2274,10 @@ scm-breakpoint.o: $(srcdir)/guile/scm-breakpoint.c $(COMPILE) $(srcdir)/guile/scm-breakpoint.c $(POSTCOMPILE) +scm-cmd.o: $(srcdir)/guile/scm-cmd.c + $(COMPILE) $(srcdir)/guile/scm-cmd.c + $(POSTCOMPILE) + scm-disasm.o: $(srcdir)/guile/scm-disasm.c $(COMPILE) $(srcdir)/guile/scm-disasm.c $(POSTCOMPILE) |