This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFA] dwarf2cfi.c obstack usage


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


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