From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A95C63877034; Tue, 7 Apr 2020 18:56:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A95C63877034 From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/24283] $_siginfo decoding missing _sigsys structure Date: Tue, 07 Apr 2020 18:56:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ssbssa at sourceware dot org X-Bugzilla-Status: NEW 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: cc 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: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2020 18:56:04 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24283 Hannes Domani changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot o= rg --- Comment #1 from Hannes Domani --- I think it should be as simple as that: --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -350,6 +350,13 @@ linux_get_siginfo_type_with_fields (struct gdbarch *gdbarch, append_composite_type_field (type, "si_fd", int_type); append_composite_type_field (sifields_type, "_sigpoll", type); + /* _sigsys */ + type =3D arch_composite_type (gdbarch, NULL, TYPE_CODE_STRUCT); + append_composite_type_field (type, "_call_addr", void_ptr_type); + append_composite_type_field (type, "_syscall", int_type); + append_composite_type_field (type, "_arch", uint_type); + append_composite_type_field (sifields_type, "_sigsys", type); + /* struct siginfo */ siginfo_type =3D arch_composite_type (gdbarch, NULL, TYPE_CODE_STRUCT); TYPE_NAME (siginfo_type) =3D xstrdup ("siginfo"); But I don't have Linux, so I can't test it. --=20 You are receiving this mail because: You are on the CC list for the bug.=