Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Siva Chandra <sivachandra@google.com>
To: gdb-patches@sourceware.org
Subject: Re: [RFC] Debug Methods in GDB Python
Date: Mon, 25 Feb 2013 23:02:00 -0000	[thread overview]
Message-ID: <CAGyQ6gwb=GpZtV3VG9Q8CogBzN8Cc9Y8g9c=YqoJrgHoUu4OMA@mail.gmail.com> (raw)
In-Reply-To: <CAGyQ6gxzG8vuPyFKHpacHS7W7jMEReidWDBkNJjywOXADXgVnw@mail.gmail.com>

Friendly ping: Is there any feedback on the patch?  I do not want to
get into tests and docs without first clearing the basics of the
patch.

On Mon, Jan 28, 2013 at 5:49 PM, Siva Chandra <sivachandra@google.com> wrote:
> Attached is a new version of the patch which I have now regression
> tested. Except for tests and docs, I think it is complete wrt the
> feature set I have in mind. Hence, the caveats from the previous mail
> still apply.
>
> 2013-01-01  Siva Chandra Reddy  <sivachandra@google.com>
>
>         * Makefile.in: Add entries for new files
>         * data-directory/Makefile.in: Add entery for new Python file
>         * eval.c: Use new 'find_overload_match' signature.
>         * ext-function.c: Support for working with functions/methods
>         defined in an extension language.
>         * ext-function.h: Support for working with functions/methods
>         defined in an extension language.
>         * python/lib/gdb/debugmethods.py: Python side of the support
>         for debug methods in Python.
>         * python/py-debugmethods.c: C side of the support for debug
>         methods in Python.
>         * python/py-objfile.c: Add 'debug_methods' attribute to
>         gdb.Objfile.
>         * python/python-internal.h: Add new function
>         gdb.enable_debug_methods to the Python module 'gdb'.
>         * python/python.c: Add new function gdb.enable_debug_methods to
>         the Python module 'gdb'.
>         * python/python.h: Add declarations of new functions.
>         * valarith.c: Use methods defined in extension languages.
>         * valops.c: Use methods defined in extension languages.
>         * value.h: New signature for 'find_overload_match'.
>
> On Mon, Jan 7, 2013 at 1:21 PM, Siva Chandra <sivachandra@google.com> wrote:
>> 1. The patch is incomplete in the sense that tests and documentation
>> are missing. Also, ways to enable and disable single or group of debug
>> methods is missing. At this point, I am looking for feedback on my
>> direction and the way I am intercepting the normal GDB flow to lookup
>> methods defined in Python. I will work on completing the patch once
>> there is an agreement on these basics.
>>
>> 2. I did not intend to provide a way for the user to define new or
>> override static methods via Python.
>>
>> 3. I did not intend to provide a way for the user to define new
>> virtual methods in Python. The user can however override existing
>> virtual and non-virtual methods. The user can also define new
>> non-virtual methods in Python.
>>
>> 4. Doug suggested that I use the C++ infrastructure in GDB as much as
>> possible. I feel I have done so.


  reply	other threads:[~2013-02-25 23:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-07 21:22 Siva Chandra
2013-01-29  1:51 ` Siva Chandra
2013-02-25 23:02   ` Siva Chandra [this message]
2013-05-10 19:33   ` Tom Tromey
2013-05-10 19:55     ` Siva Chandra
2013-05-14 19:33       ` Tom Tromey
2013-06-17 19:10         ` Siva Chandra
2013-07-22 20:47           ` Tom Tromey
2013-11-12  2:56             ` Siva Chandra
2013-11-15 22:28               ` Tom Tromey
2013-11-16  0:05                 ` Siva Chandra
2013-11-16  0:54                   ` Doug Evans
2013-11-16  1:03                     ` Siva Chandra
2013-11-16  2:48                       ` Siva Chandra
2013-11-20  0:03                         ` Doug Evans
2013-11-19 23:52                       ` Doug Evans
2013-11-20  0:39                         ` Siva Chandra
2013-11-20  2:48                         ` Doug Evans

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='CAGyQ6gwb=GpZtV3VG9Q8CogBzN8Cc9Y8g9c=YqoJrgHoUu4OMA@mail.gmail.com' \
    --to=sivachandra@google.com \
    --cc=gdb-patches@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