This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] ada: Use std::string in print_dynamic_range_bound
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 13 Oct 2017 20:29:45 +0000
- Subject: Re: [PATCH] ada: Use std::string in print_dynamic_range_bound
- Authentication-results: sourceware.org; auth=none
- References: <1507902347-7971-1-git-send-email-simon.marchi@ericsson.com>
On 17-10-13 09:45:47, Simon Marchi wrote:
> Replace this usage of GROW_VECT with an std::string. I don't think
> there's a reason for this variable to be static, other than it was
> cumbersome to manage its lifetime (i.e. use a cleanup) before.
>
> Tested by comparing the gdb.ada/*.exp test results before and after the
> patch.
>
> gdb/ChangeLog:
>
> * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
Patch is good to me.
--
Yao (齐尧)