[rfc] bi-arch for x86-64 corefile.
Yao Qi
yao@codesourcery.com
Tue Oct 30 12:37:00 GMT 2012
On 10/30/2012 03:21 PM, H.J. Lu wrote:
> I am checking in this. But sourceware.org times out for me. Please
> give it a try.
>
H.J., it works for me! Thanks for the review and checking it in.
> diff --git a/bfd/configure b/bfd/configure
> index fdf5356..427e5c1 100755
> --- a/bfd/configure
> +++ b/bfd/configure
> @@ -13927,6 +13927,10 @@ if test "${target}" = "${host}"; then
> i[3-7]86-*-linux-*)
> COREFILE=trad-core.lo
> TRAD_HEADER='"hosts/i386linux.h"'
> + case "$enable_targets" in
> + *x86_64-*linux*)
> + CORE_HEADER='"hosts/x86-64linux.h"'
> + esac
> ;;
> i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
> i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
This part is a little different from my original patch, which is
+ if test x${want64} = xtrue ; then
+ CORE_HEADER='"hosts/x86-64linux.h"'
+ fi
This requires something different in configure options. In my previous
patch, when configure i686-pc-linux-gnu-gdb to handle bi-arch, we run
configure with '--enable-64-bit-bfd'. In current trunk (w/ your patch),
we have to run configure with '--enable-targets=x86_64-pc-linux-gnu'.
Copy gdb@ here to make sure GDB people are aware of this change,
otherwise, configuring gdb with '--enable-64-bit-bfd' only still doesn't
work for handling x86-64 corefile on x86 gdb.
--
Yao
More information about the Gdb
mailing list