This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Re [PATCH 2/7] Fixes for aarch64-linux core file support
- From: Omair Javaid <omair dot javaid at linaro dot org>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Tue, 21 Oct 2014 14:07:16 +0500
- Subject: Re: Re [PATCH 2/7] Fixes for aarch64-linux core file support
- Authentication-results: sourceware.org; auth=none
- References: <CANW4E-08am5+U1Q0Q_FgU10sn-gVggzAV_i8__17kx+thP=_tw at mail dot gmail dot com> <1410997000-5878-1-git-send-email-omair dot javaid at linaro dot org> <CANW4E-2pSvnsGS68KETLUWURibb6Pf014KA17Jb1h7cvf4pr5w at mail dot gmail dot com>
On 14/10/2014 17:49, Omair Javaid wrote:
> On 18 September 2014 04:36, Omair Javaid <omair.javaid@linaro.org> wrote:
>> Updated after regset rework pushed upstream.
>>
>> gdb:
>>
>> 2014-09-18 Omair Javaid <omair.javaid@linaro.org>
>>
>> * aarch64-linux-tdep.c (aarch64_linux_init_abi): Install AArch64
>> register note sections.
>> (struct core_regset_section aarch64_linux_regset_sections[]): Declare
>> AArch64 register note sections.
>> ---
>> gdb/aarch64-linux-tdep.c | 12 ++++++++++++
>> 1 file changed, 12 insertions(+)
>>
>> diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
>> index 6377977..e5565a8 100644
>> --- a/gdb/aarch64-linux-tdep.c
>> +++ b/gdb/aarch64-linux-tdep.c
>> @@ -231,6 +231,15 @@ aarch64_linux_regset_from_core_section (struct gdbarch *gdbarch,
>> return NULL;
>> }
>>
>> +/* Core file register set sections. */
>> +
>> +static struct core_regset_section aarch64_linux_regset_sections[] =
>> +{
>> + { ".reg", AARCH64_LINUX_SIZEOF_GREGSET, "general-purpose" },
>> + { ".reg2", AARCH64_LINUX_SIZEOF_FPREGSET, "floating-point" },
>> + { NULL, 0}
>> +};
>> +
>> /* Implementation of `gdbarch_stap_is_single_operand', as defined in
>> gdbarch.h. */
>>
>> @@ -376,6 +385,9 @@ aarch64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
>> /* Enable longjmp. */
>> tdep->jb_pc = 11;
>>
>> + /* Install supported register note sections. */
>> + set_gdbarch_core_regset_sections (gdbarch, aarch64_linux_regset_sections);
>> +
>> set_gdbarch_regset_from_core_section (gdbarch,
>> aarch64_linux_regset_from_core_section);
>>
>> --
>> 1.9.1
>>
>
> ping!
>
ping!