From 7a5a839f3a82e23f7745dd9905191716c74e34df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 18 Feb 2014 23:35:46 +0100 Subject: guile: Add 'history-append!' procedure. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gdb/ 2014-02-26 Ludovic Courtès * guile/scm-value.c (gdbscm_history_append_x): New function. (value_functions): Add it. gdb/testsuite/ 2014-02-26 Ludovic Courtès * gdb.guile/scm-value.exp (test_value_in_inferior): Add test for 'history-append!'. gdb/doc/ 2014-02-26 Ludovic Courtès * gdb/doc/guile.texi (Basic Guile): Document 'history-append!'. --- gdb/doc/guile.texi | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gdb/doc/guile.texi') diff --git a/gdb/doc/guile.texi b/gdb/doc/guile.texi index ceb98dc2767..56d817edf27 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{}, 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{}. -- cgit v1.2.1