This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix PTRACE_GETREGSET failure for compat inferiors on arm64
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Kees Cook <keescook at chromium dot org>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, Brian Murray <brian dot murray at canonical dot com>, Matthias Klose <matthias dot klose at canonical dot com>
- Date: Fri, 9 Dec 2016 09:27:07 +0000
- Subject: Re: [PATCH] Fix PTRACE_GETREGSET failure for compat inferiors on arm64
- Authentication-results: sourceware.org; auth=none
- References: <20161202214613.GA54717@beast> <20161202224952.panaxwmmrx4emord@localhost> <CAGXu5jLGWLrvJCQXqRxcoi2=rz1nxXY9oZGUDwxrRnVrSkscrQ@mail.gmail.com> <CAH=s-PMKO55qJDUvBjfdO+0Fve4Z1ESY9PdGYYYNh7OoYMPF7A@mail.gmail.com> <CAGXu5j+FYErBYAbLPD3jSyc4Z5VxihjwV==JyT51JF48Xezh0A@mail.gmail.com> <20161205102626.5bx5ylt6inrbtjs4@localhost> <CAGXu5jLL4eCrM24ZDm-dAs_c2iaeQL1oDEmGWMD153q3RzLtDA@mail.gmail.com>
On 16-12-05 08:06:06, Kees Cook wrote:
> On Mon, Dec 5, 2016 at 2:26 AM, Yao Qi <qiyaoltc@gmail.com> wrote:
> > On 16-12-04 11:30:36, Kees Cook wrote:
> >> Right, I was asking how the target description is built. I couldn't
> >> determine where FPA was detected.
> >>
> >
> > It is detected in arm-tdep.c:arm_gdbarch_init, which looks for feature
> > org.gnu.gdb.arm.fpa, and set have_fpa_registers to 1 if this feature is
> > found.
>
> Yup, that part I found. What sets org.gnu.gdb.arm.fpa?
>
The remote stub may know the architecture support FPA, and reply the
target description with feature org.gnu.gdb.arm.fpa to GDB.
--
Yao (齐尧)