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] Implement set/show callback functions in gdb.Parameter


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

Phil> Anyway patch attached.  What do you think?

Very close now.

Phil> +  PyObject *set_doc_func = PyString_FromString ("get_set_string");
Phil> +
Phil> +  make_cleanup_py_decref (set_doc_func);

The PyString_FromString call can fail.
So, you need a check here.

Phil> +  PyObject *show_doc_func = PyString_FromString ("get_show_string");
Phil> +  
Phil> +  make_cleanup_py_decref (show_doc_func);

Likewise.

This is ok with those fixed.

Tom


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