This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: Add type_sprint() function to return type in string form
I really don't care about the name of the function.
Daniel's reasoning behind type_xasprint makes sense, although I
prefer the convenience of just getting the pointer to the xmalloc'ed
memory as a return value, in which case type_xstrdup would be more
appropriate.
Coin toss says... tails - it's type_xasprint.
I'll write an updated patch tonight when I get home, and see if I can
find a way to elicit the error in the testsuite.
Jason