From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 533 invoked by alias); 19 Jul 2011 20:29:18 -0000 Received: (qmail 525 invoked by uid 22791); 19 Jul 2011 20:29:18 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 19 Jul 2011 20:29:04 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6JKT41W023245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 19 Jul 2011 16:29:04 -0400 Received: from host1.jankratochvil.net (ovpn-116-20.ams2.redhat.com [10.36.116.20]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p6JKT3R9007690 for ; Tue, 19 Jul 2011 16:29:03 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p6JKT251031915; Tue, 19 Jul 2011 22:29:02 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p6JKT2lC031914; Tue, 19 Jul 2011 22:29:02 +0200 Date: Tue, 19 Jul 2011 20:55:00 -0000 From: Jan Kratochvil To: Doug Evans Cc: gdb-patches@sourceware.org Subject: Re: [patch] Fix DW_OP_call2 and DW_OP_call4 for max-cache-age 0 #2 Message-ID: <20110719202902.GB24651@host1.jankratochvil.net> References: <20100823185008.GA2926@host1.dyn.jankratochvil.net> <20100902160216.GA10848@host1.dyn.jankratochvil.net> <20110713142758.GA5862@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110713142758.GA5862@host1.jankratochvil.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00497.txt.bz2 On Wed, 13 Jul 2011 16:27:59 +0200, Jan Kratochvil wrote: > gdb/ > 2011-07-13 Jan Kratochvil > > 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 > > * 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