[Python] Add methods reference_value and const_value to gdb.Value.
authorSiva Chandra <sivachandra@chromium.org>
Sat, 25 Apr 2015 14:04:40 +0000 (07:04 -0700)
committerSiva Chandra <sivachandra@chromium.org>
Sun, 10 May 2015 00:30:35 +0000 (17:30 -0700)
commit4c082a81dfebcca45e4ee8cb90490ab733b8e017
tree824873fd9d879d57492bde01f990cc36f0f454dd
parent10a52f094ebbbed3f9d1b28a2ded94e43d500133
[Python] Add methods reference_value and const_value to gdb.Value.

gdb/ChangeLog:

* NEWS (Python Scripting): Mention the new gdb.Value methods.
* python/py-value.c (valpy_reference_value): New function.
(valpy_const_value): Likewise.
(value_object_methods): Add new methods.
* value.c (make_cv_value): New function.
* value.h (make_cv_value): Declare.

gdb/doc/ChangeLog:

* python.texi (Values From Inferior): Add descriptions of new
methods gdb.Value.reference_value and gdb.Value.const_value.

gdb/testsuite/ChangeLog:

* gdb.python/py-xmethods.cc: Enhance test case.
* gdb.python/py-xmethods.exp: New tests.
* gdb.python/py-xmethods.py (A_indexoper): New xmethod worker
function.
(B_indexoper): Likewise.
(global_dm_list) : Add new xmethod worker functions.
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/python.texi
gdb/python/py-value.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-xmethods.cc
gdb/testsuite/gdb.python/py-xmethods.exp
gdb/testsuite/gdb.python/py-xmethods.py
gdb/value.c
gdb/value.h
This page took 0.026663 seconds and 4 git commands to generate.