public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug exp/18285] ptype expr-with-xmethod -> SEGV
Date: Wed, 29 Apr 2015 20:25:00 -0000	[thread overview]
Message-ID: <bug-18285-4717-sGWBdAhYc9@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-18285-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=18285

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Doug Evans <devans@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2ce1cdbf84ce883b992bc8ffec3d29b4da229b72

commit 2ce1cdbf84ce883b992bc8ffec3d29b4da229b72
Author: Doug Evans <dje@google.com>
Date:   Wed Apr 29 13:24:21 2015 -0700

    PR python/18285

    gdb/ChangeLog:

        PR python/18285
        * NEWS: Document new gdb.XMethodWorker.get_result_type method.
        * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
        EVAL_AVOID_SIDE_EFFECTS for xmethods.
        * extension-priv.h (struct extension_language_ops)
        <get_xmethod_result_type>: New member.
        * extension.c (get_xmethod_result_type): New function.
        * extension.h (get_xmethod_result_type): Declare.
        * python/py-xmethods.c (get_result_type_method_name): New static
        global.
        (py_get_result_type_method_name): Ditto.
        (gdbpy_get_xmethod_result_type): New function.
        (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
        * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
        * python/python.c (python_extension_ops): Add
        gdbpy_get_xmethod_result_type.
        * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
        * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
        xmethods.
        (value_x_unop): Ditto.
        * value.c (result_type_of_xmethod): New function.
        * value.h (result_type_of_xmethod): Declare.

    gdb/testsuite/ChangeLog:

        * gdb.python/py-xmethods.exp: Add ptype tests.
        * gdb.python/py-xmethods.py (E_method_char_worker): Add
        get_result_type method.

    gdb/doc/ChangeLog:

        * python.texi (Xmethod API) <gdb.XMethodWorker.get_result_type>:
        Document.
        (Writing an Xmethod): Add get_result_type to example.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


  parent reply	other threads:[~2015-04-29 20:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-20 22:04 [Bug exp/18285] New: " dje at google dot com
2015-04-20 22:21 ` [Bug exp/18285] " sivachandra at gmail dot com
2015-04-20 23:23 ` dje at google dot com
2015-04-29 20:25 ` cvs-commit at gcc dot gnu.org [this message]
2015-05-12 16:20 ` cvs-commit at gcc dot gnu.org
2015-05-12 17:28 ` dje at google dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-18285-4717-sGWBdAhYc9@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).