This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix DW_OP_call2 and DW_OP_call4 for max-cache-age 0 #2
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 19 Jul 2011 22:29:02 +0200
- Subject: Re: [patch] Fix DW_OP_call2 and DW_OP_call4 for max-cache-age 0 #2
- References: <20100823185008.GA2926@host1.dyn.jankratochvil.net> <AANLkTimhw307GT1dxA5LFBnCA1njK1vk4+Sk8oamafkX@mail.gmail.com> <20100902160216.GA10848@host1.dyn.jankratochvil.net> <AANLkTimJeHosRax=BcqX_CDaZc7sYBpb8Rox3QKnGVYN@mail.gmail.com> <20110713142758.GA5862@host1.jankratochvil.net>
On Wed, 13 Jul 2011 16:27:59 +0200, Jan Kratochvil wrote:
> gdb/
> 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> Fix crash if referenced CU is aged out.
> * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
> xfree of block.data.
> (indirect_pieced_value): New variable back_to, use to for xfree of
> baton.data.
> (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
> block.data.
> * dwarf2read.c (dwarf2_find_base_address): New prototype.
> (load_cu): New function from ...
> (dw2_do_instantiate_symtab): ... the code here ...
> (process_full_comp_unit): ... and here.
> (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
> retval.data.
>
> gdb/testsuite/
> 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * gdb.dwarf2/dw2-op-call.exp (maintenance set dwarf2 max-cache-age 0):
> New.
> * gdb.dwarf2/implptr.exp: Likewise.
Checked in:
http://sourceware.org/ml/gdb-cvs/2011-07/msg00166.html
Thanks,
Jan