diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-02-18 23:35:46 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-02-26 22:59:42 +0100 |
commit | 7a5a839f3a82e23f7745dd9905191716c74e34df (patch) | |
tree | 0bfa29f6b2fd02081e561ad88e9821f72591bbe6 /gdb/doc | |
parent | d763de106f7146d7b972f98c7d0113f80a65e4f5 (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/guile.texi | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index cfde65c..47f5f38 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2014-02-26 Ludovic Courtès <ludo@gnu.org> + + * gdb/doc/guile.texi (Basic Guile): Document 'history-append!'. + 2014-02-20 Joel Brobecker <brobecker@adacore.com> * gdb.texinfo (Files): Document "add-shared-symbol-files" 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>}. |