From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E72803858D28; Mon, 4 Mar 2024 14:16:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E72803858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709561783; bh=igpjsPglesCBIoSr1pitmHCiDXO4yoaWuqIr5bZZYfg=; h=From:To:Subject:Date:From; b=SYu1f0yDmugMbJuzHAsqtxnyDNCA/T02fUjfyzSx/ZxkpDiQRiBV67APWs0+chFOi tDDvOrOov8+rMkPCzA3zDInwT1mW2XkmNP2vv6bEmdrZ9G9GKvnbD/XaU9hrWu5n5J nAmLlOfxH53/6ioUFDmRQeIXtsbocbpg6qMtYZY0= From: "robert.pirvu at cyberthorstudios dot com" To: gdb-prs@sourceware.org Subject: [Bug mi/31448] New: [Feature Request] Register's bitfields MI Commands Date: Mon, 04 Mar 2024 14:16:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: robert.pirvu at cyberthorstudios dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31448 Bug ID: 31448 Summary: [Feature Request] Register's bitfields MI Commands Product: gdb Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: mi Assignee: unassigned at sourceware dot org Reporter: robert.pirvu at cyberthorstudios dot com Target Milestone: --- I'm working on a new functionality for Eclipse to allow Register View to display bitfields. For this, I propose two GDB MI Command changes: 1. A new command to return a list of bitfields' names, similar to -data-list-register-name. Command: -data-list-register-bitfield-name (regno)=20 Response: ^done,register-bitfield-names=3D[{name=3D"reg0", bitfields=3D["A","B","C"]},{name=3D"reg1", bitfields=3D["D","E"]}] If regno(register's number) is specified then the response will contain only the specified register. 2. A new option "--with-bitfields" for -data-list-register-values to include a list of bitfields' values. This option was suggested by Guinevere Larsen to receive the necessary data and not change the default response of this command. A similar approach can be used for the bitfields' names MI Command as well if is a better implementation.=20=20=20 Command: -data-list-register-values --with-bitfields Respone: ^done,register-values=3D[{number=3D"0",value=3D"0x0",bitfields=3D[0,0,0]},{= number=3D"1",value=3D"0x1",bitfields=3D[0,0]}] Format of the response:=20 [{number=3D"regNo",value=3D"regValue",bitfields=3D[bitVal1,bitVal2,bitVal3]= }] Initial thread of this request:https://sourceware.org/pipermail/gdb/2024-February/051071.html Any feedback regarding this feature is greatly appreciated and we are=20 open to contribute to its implementation. --=20 You are receiving this mail because: You are on the CC list for the bug.=