From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 098E63858003; Mon, 13 Sep 2021 10:20:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 098E63858003 From: "913495245 at qq dot com" To: systemtap@sourceware.org Subject: [Bug translator/28334] New: cannot handle offset into register Date: Mon, 13 Sep 2021 10:20:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: 913495245 at qq dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Mon, 13 Sep 2021 10:20:02 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28334 Bug ID: 28334 Summary: cannot handle offset into register Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: critical Priority: P2 Component: translator Assignee: systemtap at sourceware dot org Reporter: 913495245 at qq dot com Target Milestone: --- Hi team I had a function trace demo with Struct parameter and Struct return, but got the "cannot handle offset into register" error. my environments: os: Ubuntu 16.04 LTS gcc 8.3 systemtap 4.5 elfutils 0.185 # func.h struct DataPackage { int len; float width; // float width2; // uncomment this line will work :) double angle; }; struct DataPackage func_complex_v2(struct DataPackage input_data, int page); # func.c struct DataPackage func_complex_v2(struct DataPackage input_data, int page)= { struct DataPackage d; d.len =3D 19; d.width =3D 115.33; d.angle =3D 6.66; return d; } # main.c int main(int argc, char const *argv[]) { struct DataPackage d; d.len =3D 997; d.width =3D 10; d.angle =3D 0.777; struct DataPackage r =3Dfunc_complex_v2(d, 789); return 0; } # cc_stap_test_complex.stp probe process("/home/xyz/vs_workspace/CacheLab/build/test").function("func_comple= x_v2").return { printf("func_complex_v2 return: %s\n", fp_to_string($return->width, 6)) } Here is the console output: Debug translate_offsetsemantic error: cannot handle offset into register: identifier '$return' at=20 /home/xyz/cc_stap_test_complex.stp:73:57 source: printf("func_complex_v2 return: %s\n", fp_to_string($return->width, 6)) ^ semantic error: unresolved type : identifier '$return' at :73:57 source: printf("func_complex_v2 return: %s\n", fp_to_string($return->width, 6)) Any advice is appreciate, thanks! --=20 You are receiving this mail because: You are the assignee for the bug.=