This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Let "gcore" command accept a suffix argument
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Hui Zhu <teawater at gmail dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, Eli Zaretskii <eliz at gnu dot org>, Stan Shebs <stanshebs at earthlink dot net>, Stan Shebs <stan at codesourcery dot com>, Michael Snyder <msnyder at vmware dot com>, gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Tue, 22 Jun 2010 08:21:17 -0700
- Subject: Re: [RFC] Let "gcore" command accept a suffix argument
- References: <20100106075757.GF24777@adacore.com> <daef60381001090154m36f5cf15x9f76b7073e4d126@mail.gmail.com> <20100109105557.GA2007@adacore.com> <daef60381001090717j4a658548g114950986df6279b@mail.gmail.com> <20100110054328.GD2007@adacore.com> <daef60381001100530k39fe9727s355cad73a47a2989@mail.gmail.com> <20100110140029.GF2007@adacore.com> <AANLkTinVPdwg6HuAp08wknw8DYe80LcR33tbEaRkMDXz@mail.gmail.com> <m3wrtsf4l7.fsf@fleche.redhat.com> <AANLkTilS_akNAsRbtukpkx7FgHb5u-Rsb5JkYfGvxrI9@mail.gmail.com>
> + do_cleanups (expanded_chain);
> + do_cleanups (ui_out_cleanups);
The cleanup structure is actually like a stack. You just have to
store the first cleanup, and any cleanup after that will be performed.
--
Joel