From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6265 invoked by alias); 11 Dec 2013 19:58:56 -0000 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 Received: (qmail 6256 invoked by uid 89); 11 Dec 2013 19:58:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 11 Dec 2013 19:58:55 +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 rBBJwpIY025835 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 11 Dec 2013 14:58:51 -0500 Received: from host2.jankratochvil.net (ovpn-116-40.ams2.redhat.com [10.36.116.40]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id rBBJwmox032287 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 11 Dec 2013 14:58:50 -0500 Date: Wed, 11 Dec 2013 19:58:00 -0000 From: Jan Kratochvil To: Markus Metzger Cc: gdb-patches@sourceware.org Subject: Re: [patch v7 05/24] frame: artificial frame id's Message-ID: <20131211195847.GC22687@host2.jankratochvil.net> References: <1385735899-12481-1-git-send-email-markus.t.metzger@intel.com> <1385735899-12481-6-git-send-email-markus.t.metzger@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1385735899-12481-6-git-send-email-markus.t.metzger@intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00451.txt.bz2 On Fri, 29 Nov 2013 15:38:00 +0100, Markus Metzger wrote: > --- a/gdb/frame.c > +++ b/gdb/frame.c > @@ -504,6 +504,19 @@ frame_id_build_wild (CORE_ADDR stack_addr) > return id; > } > /* See frame.h. */ > +struct frame_id > +frame_id_build_artificial (CORE_ADDR code_addr, > + CORE_ADDR special_addr) > +{ > + struct frame_id id = null_frame_id; > + > + id.code_addr = code_addr; > + id.code_addr_p = 1; > + id.special_addr = special_addr; > + id.special_addr_p = 1; > + return id; > +} > + > int > frame_id_p (struct frame_id l) > { [...] > --- a/gdb/frame.h > +++ b/gdb/frame.h > @@ -174,6 +174,12 @@ extern struct frame_id frame_id_build_special (CORE_ADDR stack_addr, > as the special identifier address are set to indicate wild cards. */ > extern struct frame_id frame_id_build_wild (CORE_ADDR stack_addr); > > +/* Construct an artificial frame ID. The first parameter is the frame's > + constant code address (typically the entry point), and the second the the function entry point > + frame's special identifier address. */ > +extern struct frame_id frame_id_build_artificial (CORE_ADDR code_addr, > + CORE_ADDR special_addr); > + > /* Returns non-zero when L is a valid frame (a valid frame has a > non-zero .base). The outermost frame is valid even without an > ID. */ > -- > 1.8.3.1 Thanks, Jan