Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: hjl.tools@gmail.com
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 3/5] Support x32 siginfo
Date: Sat, 16 Jun 2012 15:10:00 -0000	[thread overview]
Message-ID: <201206161510.q5GFAWkS008216@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <20120613230415.GC11434@intel.com> (hongjiu.lu@intel.com)

> Date: Wed, 13 Jun 2012 16:04:15 -0700
> From: "H.J. Lu" <hongjiu.lu@intel.com>
> 
> Hi,
> 
> This patch adds x32 siginfo support. It is a repost of
> 
> http://sourceware.org/ml/gdb-patches/2012-05/msg00489.html
> 
> OK to install?

If you make the small change suggested below.

> H.J.
> ---
> 	* amd64-linux-nat.c (compat_x32_clock_t): New.
> 	(compat_x32_siginfo_t): Likewise.
> 	(compat_x32_siginfo_from_siginfo): Likewise.
> 	(siginfo_from_compat_x32_siginfo): Likewise.
> 	(amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
> 	and siginfo_from_compat_x32_siginfo for x32.
> 
> ---
>  gdb/amd64-linux-nat.c |  200 ++++++++++++++++++++++++++++++++++++++++++++++++-
>  1 files changed, 199 insertions(+), 1 deletions(-)
> 
> diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c
> index ce62e2a..9c4026c 100644
> --- a/gdb/amd64-linux-nat.c
> +++ b/gdb/amd64-linux-nat.c
> @@ -733,9 +916,10 @@ siginfo_from_compat_siginfo (siginfo_t *to, compat_siginfo_t *from)
>  static int
>  amd64_linux_siginfo_fixup (siginfo_t *native, gdb_byte *inf, int direction)
>  {
> +  struct gdbarch *gdbarch = get_frame_arch (get_current_frame ());

Blank line here please

>    /* Is the inferior 32-bit?  If so, then do fixup the siginfo
>       object.  */
> -  if (gdbarch_addr_bit (get_frame_arch (get_current_frame ())) == 32)
> +  if (gdbarch_bfd_arch_info (gdbarch)->bits_per_word == 32)


  reply	other threads:[~2012-06-16 15:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-13 23:04 H.J. Lu
2012-06-16 15:10 ` Mark Kettenis [this message]
2012-06-16 15:19   ` H.J. Lu

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=201206161510.q5GFAWkS008216@glazunov.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=gdb-patches@sourceware.org \
    --cc=hjl.tools@gmail.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