From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20002 invoked by alias); 25 Jan 2015 08:32:59 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 19976 invoked by uid 89); 25 Jan 2015 08:32:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 25 Jan 2015 08:32:50 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0P8WkkP006133 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 25 Jan 2015 03:32:46 -0500 Received: from host1.jankratochvil.net (ovpn-116-113.ams2.redhat.com [10.36.116.113]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0P8Wg0U022616 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 25 Jan 2015 03:32:45 -0500 Date: Sun, 25 Jan 2015 12:41:00 -0000 From: Jan Kratochvil To: Doug Evans Cc: Jonathan Larmour , gdb@sourceware.org Subject: Re: dwarf_block_to_fb_offset() and 64-bit host Message-ID: <20150125083241.GB5745@host1.jankratochvil.net> References: <54C48488.6040100@eCosCentric.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00074.txt.bz2 On Sun, 25 Jan 2015 08:58:13 +0100, Doug Evans wrote: > I guess the first question is: Is an fb_offset of -28 valid? > i.e., is a negative value valid? It should not be for decreasing-sp archs (like x86*): gdb.arch/amd64-entry-value: <3>: Abbrev Number: 8 (DW_TAG_GNU_call_site_parameter) DW_AT_location : 2 byte block: 77 0 (DW_OP_breg7 (rsp): 0) ^ DW_AT_GNU_call_site_value: 1 byte block: 3b (DW_OP_lit11) <3>: Abbrev Number: 8 (DW_TAG_GNU_call_site_parameter) DW_AT_location : 2 byte block: 77 8 (DW_OP_breg7 (rsp): 8) ^ DW_AT_GNU_call_site_value: 1 byte block: 3c (DW_OP_lit12) <3>: Abbrev Number: 8 (DW_TAG_GNU_call_site_parameter) DW_AT_location : 2 byte block: 77 10 (DW_OP_breg7 (rsp): 16) ^^ DW_AT_GNU_call_site_value: 11 byte block: f4 31 8 0 0 0 0 0 0 27 40 (DW_OP_GNU_const_type: <0x31> 8 byte block: 0 0 0 0 0 0 27 40 ) <3>: Abbrev Number: 8 (DW_TAG_GNU_call_site_parameter) DW_AT_location : 2 byte block: 77 18 (DW_OP_breg7 (rsp): 24) ^^ DW_AT_GNU_call_site_value: 11 byte block: f4 31 8 0 0 0 0 0 0 29 40 (DW_OP_GNU_const_type: <0x31> 8 byte block: 0 0 0 0 0 0 29 40 ) Despite its 'fb_offset' name it is an offset from SP so parameters should not be stored in the to-be-rewritten area under SP. Jan