This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Add visible flag to breakpoints.


>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:

Phil> This patch allows breakpoints to be become invisible to the user.

I have a couple additional notes on this patch.

Phil> +static PyObject *
Phil> +bppy_get_visibility (PyObject *self, void *closure)

[...]

I think it would be handy to keep this attribute around in the next
revision of the patch, even if it is not writeable.

Phil> +  if (! PyArg_ParseTupleAndKeywords (args, kwargs, "s|iii", keywords,
Phil> +				     &spec, &type, &access_type, &visible))

I think this should be "s|iiO", and then use PyObject_IsTrue to
determine whether the argument is true or false.  I think this is more
idiomatic than an integer argument.  Also, I think the documentation
should be updated to indicate that this argument is a boolean.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]