Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: GDB <gdb-patches@sourceware.org>
Subject: Re: [PATCH 2/3] PR gdb/16304: Add amd64_x32_linux_record_tdep and amd64_x32_sys_xxx
Date: Sat, 14 Dec 2013 23:11:00 -0000	[thread overview]
Message-ID: <20131214231055.GA3792@gmail.com> (raw)
In-Reply-To: <20131209000758.GA15600@intel.com>

On Sun, Dec 08, 2013 at 04:07:58PM -0800, H.J. Lu wrote:
> On Sun, Dec 08, 2013 at 11:44:19AM -0800, H.J. Lu wrote:
> > Hi,
> > 
> > X32 Linux system calls are diffferent from amd64 Linux system calls
> > in system call numbers as well as parameter types/values.  We can't use
> > amd64_linux_record_tdep for x32. This patch adds x32 system call
> > numbers.  It also adds linux_record_tdep_p to gdbarch_tdep so that
> > we can use different linux_record_tdeps for x32 and amd64.
> > linux_record_tdep_p will be unused for other x86 targets.  Tested on
> > Linux/x86-64.  OK to install?
> > 
> > 
> 
> Here is the updated patch with amd64_x32_linux_syscall_record.
> Tested on Linux/x86-64.  OK to install?
> 
> Thanks.
> 
> 
> H.J.
> ---
> 2013-12-08  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	PR gdb/16304
> 	* amd64-linux-tdep.c (amd64_canonicalize_syscall): Handle x32
> 	system calls.
> 	(amd64_x32_linux_record_tdep): New.
> 	(amd64_linux_syscall_record_common): New function.
> 	(amd64_linux_syscall_record): Call
> 	amd64_linux_syscall_record_common with amd64_linux_record_tdep.
> 	(amd64_x32_linux_syscall_record): Call
> 	amd64_linux_syscall_record_common with
> 	amd64_x32_linux_record_tdep.
> 	(amd64_linux_init_abi_common): Move amd64_linux_record_tdep
> 	initialization and tdep->i386_syscall_record setup to ...
> 	(amd64_linux_init_abi): Here.
> 	(amd64_x32_linux_init_abi): Initialize
> 	amd64_x32_linux_record_tdep.  Set tdep->i386_syscall_record to
> 	amd64_x32_linux_syscall_record.
> 	* amd64-linux-tdep.h (amd64_x32_syscall): New enum.
> 

Hi Mark,

Does it look OK? The patch is at

https://sourceware.org/ml/gdb-patches/2013-12/msg00313.html

Thanks.

H.J.


      reply	other threads:[~2013-12-14 23:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-08 19:44 H.J. Lu
2013-12-08 21:59 ` Mark Kettenis
2013-12-09  0:08 ` H.J. Lu
2013-12-14 23:11   ` H.J. Lu [this message]

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=20131214231055.GA3792@gmail.com \
    --to=hjl.tools@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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