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: [RFC] Simplify varobj type printing


>>>>> "Vladimir" == Vladimir Prus <vladimir@codesourcery.com> writes:

Vladimir> 1. Why the current code works this way. It appears to
Vladimir> be like this since initial commit in 2000, and I don't
Vladimir> see any reason why creating value_zero and then taking its
Vladimir> type is gonna change anything.

I have no idea.  This seems very weird to me.  In the Python API we do
it the more obvious way and we haven't heard any complaints.  See
python-type.c:typy_str.

Vladimir> 2. Is there no way, outside MI code, to get char* representation
Vladimir> of a type? If so, shall I add a function to typeprint.h? 

That would be fine by me; I would use gdbtypes.h, because typeprint.h
seems both dead-ish and like something only used by language
implementations of type printing.

Tom


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