This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] dwarf2cfi.c obstack usage
- From: Michal Ludvig <mludvig at suse dot cz>
- To: GDB Patches <gdb-patches at sources dot redhat dot com>
- Date: Tue, 11 Jun 2002 10:33:56 +0200
- Subject: Re: [RFA] dwarf2cfi.c obstack usage
- Organization: SuSE CR
- References: <3D00C776.8040103@suse.cz>
Michal Ludvig wrote:
Hi all,
functions in dwarf2cfi rely on obstack initialisation from
parse_frame_info() that is mostly called as the first one. However not
always. In such a case gdb usually segfaults, because it tries to use
random pointers from uninitialized unwind_tmp_obstack structure.
This fix adds obstack_init to every function that finally calls
obstack_free.
Simple one. If noone objects within a day or two I'll commit it as
obvious. OK?
Committed.
Michal Ludvig