[PATCH] Convert 'name' of 'struct varobj' to 'const char *'.

Yao Qi yao@codesourcery.com
Tue Sep 10 02:23:00 GMT 2013


On 09/10/2013 02:02 AM, Tom Tromey wrote:
> What, that isn't defined by the standard?:-)
>
> What I mean is that the code in the patch has a function that accepts a
> "const char *", but the caller must know that this actually means that
> only malloc'd strings are acceptable and that there is a transfer of
> ownership.
>
> I think this is an unusual use of const.

OK, thanks for the explanation.  I withdraw this patch then.

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list