This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PATCH: Check bfd_mach_x64_32 to set tdesc for x32 binary
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: hjl dot tools at gmail dot com
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 11 May 2012 22:31:02 +0200 (CEST)
- Subject: Re: PATCH: Check bfd_mach_x64_32 to set tdesc for x32 binary
- References: <20120511192949.GA5070@intel.com>
> Date: Fri, 11 May 2012 12:29:49 -0700
> From: "H.J. Lu" <hongjiu.lu@intel.com>
>
> This patch checks bfd_mach_x64_32 to set tdesc for x32 binary. Tested
> on Linux/x86-64. OK to install?
>
> Thanks.
>
> * amd64-linux-tdep.h (tdesc_x32_linux): New.
> (tdesc_x32_avx_linux): Likewise.
You should commit this bit seperately.
> diff --git a/gdb/amd64-linux-tdep.h b/gdb/amd64-linux-tdep.h
> index 0338b6e..49bb95e 100644
> --- a/gdb/amd64-linux-tdep.h
> +++ b/gdb/amd64-linux-tdep.h
> @@ -34,6 +34,8 @@
> /* Linux target description. */
> extern struct target_desc *tdesc_amd64_linux;
> extern struct target_desc *tdesc_amd64_avx_linux;
> +extern struct target_desc *tdesc_x32_linux;
> +extern struct target_desc *tdesc_x32_avx_linux;
>
> /* Enum that defines the syscall identifiers for amd64 linux.
> Used for process record/replay, these will be translated into
>