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: [RFA 4/4] Change funcall_chain to be a std::vector


On 09/06/2017 06:13 AM, Tom Tromey wrote:
> This simplifies the handling of funcall_chain, by changing it to be a
> std::vector<int> and then fixing the users.  This allows the removal
> of a cleanup.
> 
> It would be even cleaner to replace this with better logic in the
> parsers; but a baby step seemed ok.
> 
> Apparently the old code was leaking funcall_chain here.  This is
> repaired now.

I guess it might be assuming that end_arglist was called on success.

> 
> ChangeLog
> 2017-09-05  Tom Tromey  <tom@tromey.com>
> 
> 	* parse.c (funcall_chain): Now a std::vector.
> 	(start_arglist, end_arglist): Simplify.
> 	(free_funcalls): Remove.
> 	(parse_exp_in_context_1): Remove cleanup.

Looks good to me.

Thanks,
Pedro Alves


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