From: Matt Rice <ratmice@gmail.com>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: Tom Tromey <tromey@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: Simplify MI breakpoint setting
Date: Mon, 07 Sep 2009 23:00:00 -0000 [thread overview]
Message-ID: <8ba6bed40909071600g1d423d05oa18b4adcfc97153a@mail.gmail.com> (raw)
In-Reply-To: <200909010916.41171.vladimir@codesourcery.com>
On Mon, Aug 31, 2009 at 10:16 PM, Vladimir
Prus<vladimir@codesourcery.com> wrote:
> On Tuesday 01 September 2009 Tom Tromey wrote:
>
>> >>>>> "Volodya" == Vladimir Prus <vladimir@codesourcery.com> writes:
>>
>> Volodya> And, progressing recursively, what is the point of not exposing
>> Volodya> all the parameters of break_command_really?
>>
>> I don't actually know. But if I had to guess, I would say it is because
>> providing wrappers ensures you can't pass in some forms of nonsense.
>>
>> If you really want to do it, and nobody objects, then I guess I don't
>> care all that much. This whole API seems a bit nuts, any time you have
>> 13 arguments you should just assume you've done something wrong already.
>>
>> I do care about not exporting a function named "break_command_really"
>> though.
>
> Ok. I imagine that break_command_really can be renamed to set_breakpoint :-)
>
here are my thoughts,
I don't like how break_command_really looks for the symbol first, then
if it fails to find one and
pending breakpoints are enabled it will set a pending breakpoint, I
think it might sometimes make sense
to set a pending breakpoint even though there may be a match.
though I do think that the break_command_really behaviour is good for
the 'break command'
if we were to introduce a 'pbreak', or pending breakpoint command, I
could imagine pbreak_command_really or something calling something
named set_breakpoint, but that is not just renaming
break_command_really.
similarly, there is currently no way to do 'set multiple-symbols
pending' or all+pending,
and making 'set multiple-symbols ask' respond like this:
[0] cancel
[1] all
[2] pending
(note that you could select (1 2) get all, and a pending
or 2 and just set a pending breakpoint.
(now you'll have to ignore all the rest of the stuff you can think of
required to make this behaviour anything but annoying)
this stuff as-is seems difficult since all the multiple-symbols stuff
predates pending breakpoints.
and there is no real API for setting them outside of a non-match
afaict, please correct me if i'm wrong.
so i think that makes me pro exposing some subset of
break_command_really, and not opposed to also exposing the stuff I
wouldn't need exposed.
next prev parent reply other threads:[~2009-09-07 23:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-01 7:13 Vladimir Prus
2009-08-07 18:52 ` Tom Tromey
2009-08-24 10:55 ` Vladimir Prus
2009-08-31 23:35 ` Tom Tromey
2009-09-01 5:16 ` Vladimir Prus
2009-09-07 23:00 ` Matt Rice [this message]
2009-09-08 5:20 ` Vladimir Prus
2009-09-08 7:59 ` Matt Rice
2009-09-08 8:15 ` Vladimir Prus
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=8ba6bed40909071600g1d423d05oa18b4adcfc97153a@mail.gmail.com \
--to=ratmice@gmail.com \
--cc=gdb-patches@sources.redhat.com \
--cc=tromey@redhat.com \
--cc=vladimir@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