This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Convert 'name' of 'struct varobj' to 'const char *'.
- From: Yao Qi <yao at codesourcery dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Tue, 10 Sep 2013 10:22:08 +0800
- Subject: Re: [PATCH] Convert 'name' of 'struct varobj' to 'const char *'.
- Authentication-results: sourceware.org; auth=none
- References: <1377825178-20943-1-git-send-email-yao at codesourcery dot com> <8738prno9z dot fsf at fleche dot redhat dot com> <52214567 dot 2020009 at codesourcery dot com> <878uz5kh5m dot fsf at fleche dot redhat dot com>
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 (éå)