public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] [PATCH V5 4/5] Adaptation of siginfo fixup for the new bnd fields
@ 2016-02-02 14:30 Tedeschi, Walfred
  0 siblings, 0 replies; only message in thread
From: Tedeschi, Walfred @ 2016-02-02 14:30 UTC (permalink / raw)
  To: Pedro Alves, eliz, brobecker; +Cc: gdb-patches

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-02 14:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-02 14:30 [pushed] [PATCH V5 4/5] Adaptation of siginfo fixup for the new bnd fields Tedeschi, Walfred

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).