Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: Pedro Alves <palves@redhat.com>
Cc: GDB <gdb-patches@sourceware.org>
Subject: Re: PATCH: Convert siginfo for x32 in gdbserver
Date: Thu, 12 Apr 2012 20:58:00 -0000	[thread overview]
Message-ID: <CAMe9rOr_-HJMozq=kBd_GZdEXM1WeRPeS9qs139-V25P0NBOJw@mail.gmail.com> (raw)
In-Reply-To: <4F872F9B.7090207@redhat.com>

On Thu, Apr 12, 2012 at 12:40 PM, Pedro Alves <palves@redhat.com> wrote:
> On 04/12/2012 06:20 PM, H.J. Lu wrote:
>
>>  /* Convert a native/host siginfo object, into/from the siginfo in the
>> @@ -938,6 +1113,21 @@ x86_siginfo_fixup (siginfo_t *native, void *inf, int direction)
>>
>>        return 1;
>>      }
>> +  /* No fixup for native x32 GDB.  */
>> +  else if (sizeof (void *) == 8)
>
>
> I'm confused.  Isn't this _also_ reached when both the inferior and gdbserver are 64-bit?
> There should also be no fixup then.

Oops.  I need to check the inferior isn't 64-bit.

>> +    {
>> +      if (sizeof (siginfo_t) != sizeof (compat_siginfo_t))
>
>
>      if (sizeof (siginfo_t) != sizeof (compat_x32_siginfo_t))
>

Fixed.   I posted an updated patch.

Thanks.

-- 
H.J.


  reply	other threads:[~2012-04-12 20:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12 17:21 H.J. Lu
2012-04-12 20:14 ` Pedro Alves
2012-04-12 20:58   ` H.J. Lu [this message]
2012-04-12 20:27 ` H.J. Lu
2012-04-12 21:26   ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMe9rOr_-HJMozq=kBd_GZdEXM1WeRPeS9qs139-V25P0NBOJw@mail.gmail.com' \
    --to=hjl.tools@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox