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: RFC: introduce scoped cleanups


> 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


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