This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[pushed] [PATCH V5 4/5] Adaptation of siginfo fixup for the new bnd fields
- From: "Tedeschi, Walfred" <walfred dot tedeschi at intel dot com>
- To: Pedro Alves <palves at redhat dot com>, "eliz at gnu dot org" <eliz at gnu dot org>, "brobecker at adacore dot com" <brobecker at adacore dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Tue, 2 Feb 2016 14:30:40 +0000
- Subject: [pushed] [PATCH V5 4/5] Adaptation of siginfo fixup for the new bnd fields
- Authentication-results: sourceware.org; auth=none
Pushed with changes
-----Original Message-----
From: Pedro Alves [mailto:palves@redhat.com]
Sent: Thursday, January 28, 2016 1:37 PM
To: Tedeschi, Walfred; eliz@gnu.org; brobecker@adacore.com
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH V5 4/5] Adaptation of siginfo fixup for the new bnd fields
On 01/22/2016 02:54 PM, Walfred Tedeschi wrote:
> Caveat: No support for MPX on x32.
What would it take to support that?
> +/* These types below (native_*) define a siginfo type that is layout
> + the most complete siginfo available for the architecture. */
nat_, not native_, afaics. I'd copy/edit this to:
/* The nat_* types below define the most complete kernel siginfo type
known for the architecture, independent of system/libc headers. */
> +
> +typedef int nat_int_t;
> +typedef void* nat_uptr_t;
> +
> +typedef int nat_time_t;
> +typedef int nat_timer_t;
> +
>
> @@ -192,54 +287,58 @@ typedef struct compat_x32_siginfo static void
> compat_siginfo_from_siginfo (compat_siginfo_t *to, siginfo_t *from) {
> + nat_siginfo_t from_nat;
> +
> + gdb_assert (sizeof (nat_siginfo_t) == sizeof (siginfo_t));
Make this a gdb_static_assert, and move it out of the function, below where nat_siginfo_t is defined. (Likewise the other instances in the other functions).
OK with those changes.
Thanks,
Pedro Alves
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928