From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 110622 invoked by alias); 25 Nov 2016 11:51:39 -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 110600 invoked by uid 89); 25 Nov 2016 11:51:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 25 Nov 2016 11:51:37 +0000 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uAPBn5EQ019517 for ; Fri, 25 Nov 2016 06:51:36 -0500 Received: from e06smtp13.uk.ibm.com (e06smtp13.uk.ibm.com [195.75.94.109]) by mx0b-001b2d01.pphosted.com with ESMTP id 26xjhggsug-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 25 Nov 2016 06:51:35 -0500 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 25 Nov 2016 11:51:34 -0000 Received: from d06dlp01.portsmouth.uk.ibm.com (9.149.20.13) by e06smtp13.uk.ibm.com (192.168.101.143) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 25 Nov 2016 11:51:32 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id C92B117D8042 for ; Fri, 25 Nov 2016 11:54:00 +0000 (GMT) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uAPBpWxR32374798 for ; Fri, 25 Nov 2016 11:51:32 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id uAPBpW3v028874 for ; Fri, 25 Nov 2016 04:51:32 -0700 Received: from oc8523832656.ibm.com (icon-9-167-232-32.megacenter.de.ibm.com [9.167.232.32]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id uAPBpVHO028871; Fri, 25 Nov 2016 04:51:31 -0700 Received: by oc8523832656.ibm.com (Postfix, from userid 500) id 6A33D10BCB8; Fri, 25 Nov 2016 12:51:30 +0100 (CET) Subject: Re: [PATCH 2/3] Adjust Value.location for lval_register To: qiyaoltc@gmail.com (Yao Qi) Date: Fri, 25 Nov 2016 11:51:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <1480068407-22616-3-git-send-email-yao.qi@linaro.org> from "Yao Qi" at Nov 25, 2016 10:06:46 AM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16112511-0012-0000-0000-000004969790 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16112511-0013-0000-0000-00001659E392 Message-Id: <20161125115130.6A33D10BCB8@oc8523832656.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-25_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611250208 X-SW-Source: 2016-11/txt/msg00799.txt.bz2 Yao Qi wrote: > + /* Register number. */ > + short regnum; Now this is no longer space-constrained (the location union is two pointers in size anyway), so this can just be an "int" like regnums are elsewhere. > + /* Frame ID of "next" frame to which a register value is relative. > + If the register value is found relative to frame F, then the > + frame id of F->next will be stored in next_frame_id. */ > + struct frame_id next_frame_id; > + } reg; > /* Describes offset of a value within lval of a structure in target > addressable memory units. If lval == lval_memory, this is an offset to > - the address. If lval == lval_register, this is a further offset from > - location.address within the registers structure. Note also the member > - embedded_offset below. */ > + the address. Note also the member embedded_offset below. */ > LONGEST offset; Hmm, I think we recently had the discussion that *any* values should allow using an offset. The comment should probably reflect this. Otherwise, this looks good to me. Bye, Ulrich -- Dr. Ulrich Weigand GNU/Linux compilers and toolchain Ulrich.Weigand@de.ibm.com