From 06eb158633faa8746dd39f19ce784448bb7ece00 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 3 Jun 2014 01:58:15 -0700 Subject: Add parameter support for Guile. * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o. (SUBDIR_GUILE_SRCS): Add scm-param.c. (scm-param.o): New rule. * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare. (gdbscm_misc_error): Declare. (gdbscm_canonicalize_command_name): Declare. (gdbscm_scm_to_host_string): Declare. (gdbscm_scm_from_host_string): Declare. (gdbscm_initialize_parameters): Declare. * guile/guile.c (initialize_gdb_module): Call gdbscm_initialize_parameters. * guile/lib/gdb.scm: Export parameter symbols. * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from cmdscm_canonicalize_name and made public. All callers updated. * guile/scm-exception.c (gdbscm_misc_error): New function. * guile/scm-param.c: New file. * guile/scm-string.c (gdbscm_scm_to_string): Add comments. (gdbscm_scm_to_host_string): New function. (gdbscm_scm_from_host_string): New function. * scm-utils.c (gdbscm_gc_dup_argv): New function. testsuite/ * gdb.guile/scm-parameter.exp: New file. doc/ * guile.texi (Guile API): Add entry for Parameters In Guile. (GDB Scheme Data Types): Mention object. (Parameters In Guile): New node. --- gdb/guile/lib/gdb.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gdb/guile/lib') diff --git a/gdb/guile/lib/gdb.scm b/gdb/guile/lib/gdb.scm index a3f43a4..f81433b 100644 --- a/gdb/guile/lib/gdb.scm +++ b/gdb/guile/lib/gdb.scm @@ -275,6 +275,26 @@ current-objfile objfiles + ;; scm-param.c + + PARAM_BOOLEAN + PARAM_AUTO_BOOLEAN + PARAM_ZINTEGER + PARAM_UINTEGER + PARAM_ZUINTEGER + PARAM_ZUINTEGER_UNLIMITED + PARAM_STRING + PARAM_STRING_NOESCAPE + PARAM_OPTIONAL_FILENAME + PARAM_FILENAME + PARAM_ENUM + + make-parameter + register-parameter! + parameter? + parameter-value + set-parameter-value! + ;; scm-ports.c input-port -- cgit v1.1