Re: RFC: introduce scoped cleanups

Joel Brobecker
2013-05-31T06:11:45Z

> Pedro said he was interested in general stack-based allocation of
> cleanups, so I implemented that, following his plan.

Is this purely for performance?

> Second, like the previous iteration of the patch, this adds a "scoped"
> cleanup that can be used to do runtime error-checking of cleanup use.
> This checking only works when gdb is compiled with gcc.
>
> I converted linespec.c entirely to the new setup, just to show what it
> looks like.

Looks pretty nice, I'd say!

--
Joel