Guile: add value-const-value
The Guile API doesn't currently have an equivalent to the Python API's gdb.Value.const_value(). This commit adds a procedure with equivalent semantics to the Guile API. gdb/ChangeLog: * NEWS (Guile API): Note the addition of the new procedure. * guile/scm-value.c (gdbscm_value_const_value): Add implementation of value-const-value procedure. (value_functions): Add value-const-value procedure. gdb/doc/ChangeLog: * guile.texi (Values From Inferior In Guile): Add documentation for value-const-value. gdb/testsuite/ChangeLog: * gdb.guile/scm-value.exp (test_value_in_inferior): Add test for value-const-value.
This commit is contained in:
parent
9d4fc61d41
commit
ee35ce8200
7 changed files with 51 additions and 2 deletions
|
@ -811,6 +811,11 @@ Return a new @code{<gdb:value>} object which is an rvalue reference to
|
|||
the value encapsulated by @code{<gdb:value>} object @var{value}.
|
||||
@end deffn
|
||||
|
||||
@deffn {Scheme Procedure} value-const-value value
|
||||
Return a new @code{<gdb:value>} object which is a @samp{const} version
|
||||
of @code{<gdb:value>} object @var{value}.
|
||||
@end deffn
|
||||
|
||||
@deffn {Scheme Procedure} value-field value field-name
|
||||
Return field @var{field-name} from @code{<gdb:value>} object @var{value}.
|
||||
@end deffn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue