This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PATCH: Check gdbarch_ptr_bit for x32 core dump
> Date: Fri, 11 May 2012 14:00:47 -0700
> From: "H.J. Lu" <hjl.tools@gmail.com>
>
> > This is ok once the diff to add tde definitions for tdesc_x32_linux
> > and tdesc_x32_avx_linux to amd64-linux-tdep.h is in.
> >
>
> This won't work since desc_x32_linux and tdesc_x32_avx_linux are
> defined by
>
> diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c
> index acc7303..601ce20 100644
> --- a/gdb/amd64-linux-tdep.c
> +++ b/gdb/amd64-linux-tdep.c
> @@ -42,6 +42,8 @@
>
> #include "features/i386/amd64-linux.c"
> #include "features/i386/amd64-avx-linux.c"
> +#include "features/i386/x32-linux.c"
> +#include "features/i386/x32-avx-linux.c"
>
> in
>
> http://sourceware.org/ml/gdb-patches/2012-05/msg00437.html
>
> Can I apply the above change together with the additional change in
> amd64-linux-tdep.h?
You mean just adding those includes? Yes that's fine.