This is the mail archive of the gdb-patches@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]

Re: PATCH: Check bfd_mach_x64_32 to set tdesc for x32 binary


> 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
> 


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