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: Call initialize_tdesc_x32/initialize_tdesc_x32_avx


> Date: Mon, 14 May 2012 11:02:50 -0700
> From: "H.J. Lu" <hongjiu.lu@intel.com>
> 
> Hi,
> 
> This patch calls initialize_tdesc_x32 and initialize_tdesc_x32_avx in
> _initialize_amd64_tdep.  OK to install?

If you leave out the following line from the ChangeLog entry:

> 	(amd64_init_abi): Check bits_per_address for ILP32 process.

> 
> Thanks.
> 
> 
> H.J.
> ---
> 	* amd64-tdep.c: Include features/i386/x32.c and
> 	features/i386/x32-avx.c.
> 	(amd64_init_abi): Check bits_per_address for ILP32 process.
> 	(_initialize_amd64_tdep): Call initialize_tdesc_x32 and
> 	initialize_tdesc_x32_avx.
> 
> diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
> index 289ecc4..e2fbf33 100644
> --- a/gdb/amd64-tdep.c
> +++ b/gdb/amd64-tdep.c
> @@ -43,6 +43,8 @@
>  
>  #include "features/i386/amd64.c"
>  #include "features/i386/amd64-avx.c"
> +#include "features/i386/x32.c"
> +#include "features/i386/x32-avx.c"
>  
>  #include "ax.h"
>  #include "ax-gdb.h"
> @@ -2802,6 +2804,8 @@ _initialize_amd64_tdep (void)
>  {
>    initialize_tdesc_amd64 ();
>    initialize_tdesc_amd64_avx ();
> +  initialize_tdesc_x32 ();
> +  initialize_tdesc_x32_avx ();
>  }
>  
>  
> 


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