From: Phil Muldoon <pmuldoon@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [0/6] breakpoints_ops for all kinds of breakpoints
Date: Mon, 25 Jul 2011 14:40:00 -0000 [thread overview]
Message-ID: <m362mqwn54.fsf@redhat.com> (raw)
In-Reply-To: <201107251236.46235.pedro@codesourcery.com> (Pedro Alves's message of "Mon, 25 Jul 2011 12:36:46 +0100")
Pedro Alves <pedro@codesourcery.com> writes:
> On Friday 22 July 2011 18:32:59, Phil Muldoon wrote:
>> I think it is great. It clears up several (dozen) ambiguities with
>> breakpoint operations. I don't think this will affect the Python
>> breakpoint_ops work (other than some refactoring, but we'll come to that
>> bridge when your work is checked in).
>
> Yeah, I don't think your current patch would need more than a
> some trivial updates, but then again, I did leave the print_one
> method behind in this conversion, which was the method that
> I raised having the issue that doesn't seem to fit for gdb's own
> breakpoints currently, so we should clean that up before
> considering exposing it as public API.
I have been thinking on your comments quite a bit in the last few
weeks, and about external facing APIs in general. I don't think it is
sensible to make 1:1 mappings of these breakpoint_ops APIs
to Python. I think "print_one" "print_it" mean nothing to a Python
scripting user. I've come to the conclusion that we should abstract
these functions to concepts a Python scripter can better understand. So
"print_one" will not be directly exposed as before. The Python API,
will end up calling print_one, sure, but there will (I hope) be
sufficient levels of abstraction that any future refactoring will be
coped with internally. We already massage the data to-and-from GDB
extensively anyway, so it makes better sense to the user.
So my plan is to submit a patch after yours is checked in, with the new
APIs. We can look again, then, if it makes sense at that point, and if
any future refactorings of print_one will really matter to the user from
an API perspective.
Cheers,
Phil
prev parent reply other threads:[~2011-07-25 12:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-22 15:42 Pedro Alves
2011-07-22 17:33 ` Tom Tromey
2011-07-25 12:39 ` Pedro Alves
2011-07-25 16:20 ` Tom Tromey
2011-07-22 17:38 ` Phil Muldoon
2011-07-25 14:17 ` Pedro Alves
2011-07-25 14:40 ` Phil Muldoon [this message]
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=m362mqwn54.fsf@redhat.com \
--to=pmuldoon@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
/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