Adds a couple of missing bits to the Guile API to make C++11 rvalue
reference values and types usable from Guile scripts.
gdb/ChangeLog:
* guile/scm-type.c (type_integer_constants): Add binding for
TYPE_CODE_RVALUE_REF.
* guile/scm-value.c (gdbscm_value_referenced_value): Handle
dereferencing of rvalue references.
* NEWS (Guile API): Note improvements in rvalue reference support.
gdb/doc/ChangeLog:
* guile.texi (Types In Guile): Add documentation for
TYPE_CODE_RVALUE_REF.
+2021-05-12 George Barrett <bob@bob131.so>
+
+ * guile/scm-type.c (type_integer_constants): Add binding for
+ TYPE_CODE_RVALUE_REF.
+ * guile/scm-value.c (gdbscm_value_referenced_value): Handle
+ dereferencing of rvalue references.
+ * NEWS (Guile API): Note improvements in rvalue reference support.
+
2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
* btrace.c (handle_pt_insn_events): Ignore status update enable
Request the remote to store the specified allocation tags to the requested
memory range.
+* Guile API
+
+ ** Improved support for rvalue reference values:
+ TYPE_CODE_RVALUE_REF is now exported as part of the API and the
+ value-referenced-value procedure now handles rvalue reference
+ values.
+
*** Changes in GDB 10
* There are new feature names for ARC targets: "org.gnu.gdb.arc.core"
+2021-05-12 George Barrett <bob@bob131.so>
+
+ * guile.texi (Types In Guile): Add documentation for
+ TYPE_CODE_RVALUE_REF.
+
2021-05-10 Andrew Burgess <andrew.burgess@embecosm.com>
* guile.texinfo (Breakpoints In Guile): Reword sentence.
@item TYPE_CODE_REF
A reference type.
+@item TYPE_CODE_RVALUE_REF
+A C@t{++}11 rvalue reference type.
+
@item TYPE_CODE_CHAR
A character type.
X (TYPE_CODE_METHODPTR),
X (TYPE_CODE_MEMBERPTR),
X (TYPE_CODE_REF),
+ X (TYPE_CODE_RVALUE_REF),
X (TYPE_CODE_CHAR),
X (TYPE_CODE_BOOL),
X (TYPE_CODE_COMPLEX),
res_val = value_ind (value);
break;
case TYPE_CODE_REF:
+ case TYPE_CODE_RVALUE_REF:
res_val = coerce_ref (value);
break;
default: