aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc/guile.texi
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-02-18 23:35:46 +0100
committerLudovic Courtès <ludo@gnu.org>2014-02-26 22:59:42 +0100
commit7a5a839f3a82e23f7745dd9905191716c74e34df (patch)
tree0bfa29f6b2fd02081e561ad88e9821f72591bbe6 /gdb/doc/guile.texi
parentd763de106f7146d7b972f98c7d0113f80a65e4f5 (diff)
downloadgdb-7a5a839f3a82e23f7745dd9905191716c74e34df.zip
gdb-7a5a839f3a82e23f7745dd9905191716c74e34df.tar.gz
gdb-7a5a839f3a82e23f7745dd9905191716c74e34df.tar.bz2
guile: Add 'history-append!' procedure.
gdb/ 2014-02-26 Ludovic Courtès <ludo@gnu.org> * guile/scm-value.c (gdbscm_history_append_x): New function. (value_functions): Add it. gdb/testsuite/ 2014-02-26 Ludovic Courtès <ludo@gnu.org> * gdb.guile/scm-value.exp (test_value_in_inferior): Add test for 'history-append!'. gdb/doc/ 2014-02-26 Ludovic Courtès <ludo@gnu.org> * gdb/doc/guile.texi (Basic Guile): Document 'history-append!'.
Diffstat (limited to 'gdb/doc/guile.texi')
-rw-r--r--gdb/doc/guile.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/doc/guile.texi b/gdb/doc/guile.texi
index ceb98dc..56d817e 100644
--- a/gdb/doc/guile.texi
+++ b/gdb/doc/guile.texi
@@ -278,6 +278,15 @@ history contains the result of evaluating an expression from Guile's
command line.
@end deffn
+@deffn {Scheme Procedure} history-append! value
+Append @var{value}, an instance of @code{<gdb:value>}, to @value{GDBN}'s
+value history. Return its index in the history.
+
+Putting into history values returned by Guile extensions will allow
+the user convenient access to those values via CLI history
+facilities.
+@end deffn
+
@deffn {Scheme Procedure} parse-and-eval expression
Parse @var{expression} as an expression in the current language,
evaluate it, and return the result as a @code{<gdb:value>}.