aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-06-06 15:57:03 -0700
committerDoug Evans <dje@google.com>2014-06-06 15:57:03 -0700
commitd2929fdcf05bb14dc2484ee6918dbf67c5b46d75 (patch)
tree031eb52397389646d26efdefa250bc0aa1157334 /gdb/doc
parent6da01dbef2535e333e2b26547d61e4684b8e4da7 (diff)
downloadgdb-d2929fdcf05bb14dc2484ee6918dbf67c5b46d75.zip
gdb-d2929fdcf05bb14dc2484ee6918dbf67c5b46d75.tar.gz
gdb-d2929fdcf05bb14dc2484ee6918dbf67c5b46d75.tar.bz2
Add support for guile 2.0.5.
* guile/guile-internal.h (gdbscm_guile_major_version): Declare. (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare. (gdbscm_guile_version_is_at_least): Declare. (gdbscm_scm_string_to_int): Declare. * guile/guile.c (gdbscm_guile_major_version): New global. (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals. (guile_datadir): New static global. (gdbscm_guile_data_directory): New function. (initialize_scheme_side): Update. (misc_guile_functions): Add guile-data-directory. (initialize_gdb_module): Fetch guile version number. * guile/lib/gdb.scm: Remove call to add-to-load-path. * guile/lib/gdb/init.scm (%initialize!): Ditto. * guile/lib/gdb/boot.scm: Use guile-data-directory. * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix comments. * guile/scm-string.c (gdbscm_scm_string_to_int): New function. * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function. * guile/scm-value.c (gdbscm_value_to_string): Only call scm_port_conversion_strategy if Guile version >= 2.0.6. doc/ * guile.texi (Guile Configuration): Document guile-data-directory.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/guile.texi8
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 0f26420..3dadf06 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2014-06-06 Doug Evans <dje@google.com>
+
+ * guile.texi (Guile Configuration): Document guile-data-directory.
+
2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
* gdb.texinfo (Invoking GDB): Add -q and --quiet.
diff --git a/gdb/doc/guile.texi b/gdb/doc/guile.texi
index bd1040c..4aaba8a 100644
--- a/gdb/doc/guile.texi
+++ b/gdb/doc/guile.texi
@@ -312,8 +312,12 @@ parameters.
@deffn {Scheme Procedure} data-directory
Return a string containing @value{GDBN}'s data directory.
-This directory contains @value{GDBN}'s ancillary files, including
-the Guile modules provided by @value{GDBN}.
+This directory contains @value{GDBN}'s ancillary files.
+@end deffn
+
+@deffn {Scheme Procedure} guile-data-directory
+Return a string containing @value{GDBN}'s Guile data directory.
+This directory contains the Guile modules provided by @value{GDBN}.
@end deffn
@deffn {Scheme Procedure} gdb-version