This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: introduce scoped cleanups
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 31 May 2013 10:11:35 +0400
- Subject: Re: RFC: introduce scoped cleanups
- References: <87li7ohtiu dot fsf at fleche dot redhat dot com> <87ppw8qlgl dot fsf at fleche dot redhat dot com>
> 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