This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ada: Use std::string in print_dynamic_range_bound


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 (齐尧)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]