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] |
>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes: Phil> @@ -85,6 +110,8 @@ objfpy_get_printers (PyObject *o, void *ignore) Phil> { Phil> objfile_object *self = (objfile_object *) o; Phil> + OBJFPY_REQUIRE_VALID (self); This changes behavior. It is harmless (but goofy) to get or set the printers on an invalid Objfile. So, I think this should not be added. Phil> @@ -95,6 +122,8 @@ objfpy_set_printers (PyObject *o, PyObject *value, void *ignore) Phil> PyObject *tmp; Phil> objfile_object *self = (objfile_object *) o; Phil> + OBJFPY_SET_REQUIRE_VALID (self); Likewise. Then you don't need the new macros, either. The rest looks good to me. Tom
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |