This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/20287] X32 and "gdb_static_assert (sizeof (nat_siginfo_t) == sizeof (siginfo_t))"


https://sourceware.org/bugzilla/show_bug.cgi?id=20287

--- Comment #14 from Walfred Tedeschi <walfred.tedeschi at intel dot com> ---
Only the nat_siginfo has to be changed, in case we are compiling in x32 native.

All others have the right pad.

  48 typedef struct nat_siginfo
  49 {
  50   int si_signo;
  51   int si_errno;
  52   int si_code;
  53 
  54   union
  55   {
  56     int _pad[((128 / sizeof (int)) - 4)];


Here is the compatibility layer i.e. 32bit running on x86_64
 138 typedef struct compat_siginfo
 139 {
 140   int si_signo;
 141   int si_errno;
 142   int si_code;
 143 
 144   union
 145   {
 146     int _pad[((128 / sizeof (int)) - 3)];


For X32:

 205 typedef struct compat_x32_siginfo
 206 {
 207   int si_signo;
 208   int si_errno;
 209   int si_code;
 210 
 211   union
 212   {
 213     int _pad[((128 / sizeof (int)) - 3)];
 214

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]