From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DE0573839C40; Thu, 19 May 2022 20:25:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE0573839C40 From: "scox at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/28334] cannot handle offset into register Date: Thu, 19 May 2022 20:25:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: scox at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2022 20:25:38 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28334 Stan Cox changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |scox at redhat dot com Resolution|--- |FIXED --- Comment #1 from Stan Cox --- This is due to the x8664 abi which specifies how structures are passed. The structure in the example is returned by value, which will return the struct members in successive registers as specified by the x8664 abi. In this particular case members are packed into a single register and systemtap is = thus not able to pry it apart. Thus the error "cannot handle offset into regist= er" The abi says: The classification of aggregate (structures and arrays) and union types wo= rks as follows: 1. If the size of an object is larger than four eightbytes, or it contains unaligned fields, it has class MEMORY So if the example is changed to be double width; double angle; then the abi threshold is hit, the struct is passed by reference and systemtap can then access individual members. --=20 You are receiving this mail because: You are the assignee for the bug.=