This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [rfc] bi-arch for x86-64 corefile.
- From: Pedro Alves <palves at redhat dot com>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: palves at redhat dot com, yao at codesourcery dot com, hjl dot tools at gmail dot com, binutils at sourceware dot org, gdb at sourceware dot org
- Date: Tue, 30 Oct 2012 14:53:30 +0000
- Subject: Re: [rfc] bi-arch for x86-64 corefile.
- References: <1350881426-4945-1-git-send-email-yao@codesourcery.com> <CAMe9rOpeR8AX6EG8mNcfZNHNMrpZmv1S4O8H7BmREsU1vyN1jQ@mail.gmail.com> <508F3B88.8060701@codesourcery.com> <CAMe9rOrXFG_E7F0hhHjexEhahWWNVwfxfSXoOcCAU9XotSuuVw@mail.gmail.com> <508F578F.8050807@codesourcery.com> <CAMe9rOp_7=S5rTEC+T8Q-UkZj3wDNNM6AhwbRXn18nZAGDH03A@mail.gmail.com> <508FCA04.6010600@codesourcery.com> <508FCEC5.2020403@redhat.com> <201210301354.q9UDseOZ022173@glazunov.sibelius.xs4all.nl>
On 10/30/2012 01:54 PM, Mark Kettenis wrote:
> The problem is that the Linux core file support in bfd is still relies
> on native headers. Trying to "fix them up" for bi-arch like what's been
> done for the last couple of years on Linux is never going to give you
> true cross-debugging support.
I agree. The core files' layout is ABI, so we should not need, and should
not rely on host headers for generating core files. Given that gcore
works with gdbserver too, a non-x86 hosted GDB debugging against
a x86 gdbserver should be able to generate x86 core files, without
x86 target headers present when building the non-x86 gdb/bfd.
I very much support that direction.
The patch looks to me a a small step in the right direction,
in that we rely a little bit less on the host headers though.
I don't know what structures and constants we're still picking up
from host headers.
Regardless, that's independent of the --enable-64-bit-bfd vs
--enable-targets=x86_64-pc-linux-gnu issue, which seems like
H.J has just fixed. Thanks!
--
Pedro Alves