[v2,0/3] Guile: add value-{reference,const}-value

Message ID rm-ih4x&xpuni8.d7o7l57/tqw1l2m97gs.&kys9am51gvrcm1be@mail.bob131.so
Headers show
  • Guile: add value-{reference,const}-value
Related show


Simon Marchi via Gdb-patches April 26, 2021, 7:35 p.m.
A couple of simple patches implementing functions missing from the
Guile API (relative to the Python API). Both are straight-forward
translations of the Python implementations.

Feedback on the original series pointed out that the Python API also
has a Value.rvalue_reference_value() method and that a matching
Guile procedure should be introduced alongside value-reference-value,
owing to their similarity. This v2 series updates the patch as
indicated; an additional patch improving the Guile support for rvalue
reference types is included to allow for writing an appropriate test.

George Barrett (3):
  Guile: improve rvalue support
  Guile: add {r,}value-reference-value
  Guile: add value-const-value

 gdb/doc/guile.texi                    | 18 ++++++++
 gdb/guile/scm-type.c                  |  1 +
 gdb/guile/scm-value.c                 | 66 +++++++++++++++++++++++++++
 gdb/testsuite/gdb.guile/scm-value.exp | 13 ++++++
 4 files changed, 98 insertions(+)