This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: missing do_cleanups call in dwarf2_frame_cache
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 02 Aug 2012 17:33:08 +0100
- Subject: Re: RFC: missing do_cleanups call in dwarf2_frame_cache
- References: <87vch1qntm.fsf@fleche.redhat.com>
On 08/02/2012 05:08 PM, Tom Tromey wrote:
> While debugging a different problem, I found a spot in
> dwarf2_frame_cache that fails to call do_cleanups before returning. The
> usual rule is that ordinary functions should not leave any dangling
> cleanups.
>
> Built and regtested on x86-64 Fedora 16.
>
> Tom
>
> * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
> return.
Whoops. Ok, of course.
--
Pedro Alves