This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [Python] Add methods reference_value and const_value to gdb.Value
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Siva Chandra <sivachandra at google dot com>
- Cc: gdb-patches at sourceware dot org, dje at google dot com
- Date: Mon, 27 Apr 2015 17:54:10 +0300
- Subject: Re: [Python] Add methods reference_value and const_value to gdb.Value
- Authentication-results: sourceware.org; auth=none
- References: <CAGyQ6gw3=nbXap4Uk2CP7h15UqNe7hoXuJj5+8D15BiC4d9u1w at mail dot gmail dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Mon, 27 Apr 2015 06:30:20 -0700
> From: Siva Chandra <sivachandra@google.com>
> Cc: Doug Evans <dje@google.com>
>
> This will help address libstdc++/65840:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65840
>
> gdb/ChangeLog:
>
> 2015-04-27 Siva Chandra Reddy <sivachandra@google.com>
>
> * 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:
>
> 2015-04-27 Siva Chandra Reddy <sivachandra@google.com>
>
> * python.texi (Values From Inferior): Add descriptions of new
> methods gdb.Value.reference_value and gdb.Value.const_value.
>
> gdb/testsuite/ChangeLog:
>
> 2015-04-27 Siva Chandra Reddy <sivachandra@google.com>
>
> * 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.
OK for the documentation parts.
Thanks.