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: [RFA 3/5] Introduce gdbpy_subclass and use it to simplify some logic


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

>> I don't really like gdbpy_subclass, I think there should be "ref" in the
>> name to be clear.  So it could be gdbpy_subclass_ref.  However, I find
>> gdbpy_subclass_ref<gdbpy_breakpoint_object> a bit long.  As you may have
>> seen in my version of the patch, I had decided to keep gdbpy_ref for
>> PyObjects and introduce typedef for other types (gdbpy_inf_ref).  So I
>> could see one called gdbpy_bp_ref.
>> 
>> Otherwise, I like gdbpy_ref<> and gdbpy_ref<gdbpy_breakpoint_object>.

Pedro> I agree.  Simon's gdbpy_ref_base + typedef idea would work for me too.

This patch would mean introducing 12 typedefs, most used (so far) in a
single spot.

That doesn't seem so great to me, so I think I will look at the
gdbpy_ref<> rename instead.

Tom


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