This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 6/8] const-fy regcache::m_aspace
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 1 Nov 2017 14:35:22 +0000
- Subject: Re: [PATCH 6/8] const-fy regcache::m_aspace
- Authentication-results: sourceware.org; auth=none
- References: <1509096702-12202-1-git-send-email-yao.qi@linaro.org> <1509096702-12202-7-git-send-email-yao.qi@linaro.org> <75902364-b335-e37e-75e8-db5a0ff969c3@ericsson.com> <86d152xrl0.fsf@gmail.com> <7f4bb93d7518f57556791bb93aad6360@polymtl.ca>
On Wed, Nov 1, 2017 at 1:59 PM, Simon Marchi <simon.marchi@polymtl.ca> wrote:
>>
>> I want to achieve both, the field m_aspace is a const, and the pointed
>> object is const too.
>>
>> /* The address space of this register cache (for registers where it
>> makes sense, like PC or SP). */
>> - struct address_space *m_aspace;
>> + const address_space * const m_aspace;
>
>
> Ah ok I had missed that there was two consts added.
>
The 2nd const was added in the updated patch. It was missed in the
the first version.
--
Yao (齐尧)