This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: cortex-m xml register descriptions for m-system
- From: Pedro Alves <palves at redhat dot com>
- To: Tristan Gingold <gingold at adacore dot com>, Christopher Friedt <chrisfriedt at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 15 Dec 2015 11:59:49 +0000
- Subject: Re: cortex-m xml register descriptions for m-system
- Authentication-results: sourceware.org; auth=none
- References: <CAF4BF-RuPwFWfDa2Sp7MzYjF8bo1K3xb=jMThSpK4T7gTe+whQ at mail dot gmail dot com> <566F108D dot 1000401 at redhat dot com> <CAF4BF-TUH0V4=YY07u9n3q=dMecbjMr9cOrEm=2BDXeP3HrDQQ at mail dot gmail dot com> <DA04697A-0269-4CCB-B40D-8C727E696C64 at adacore dot com>
On 12/15/2015 11:44 AM, Tristan Gingold wrote:
>
>> On 15 Dec 2015, at 00:11, Christopher Friedt <chrisfriedt@gmail.com> wrote:
>> Hmm... It's hard for me to say. The MSP and PSP are banked stack
>> pointers, control instructs the core which stack pointer to use, and
>> they are also tightly coupled to exception entry, so I would lean
>> towards yes?
>
> I do think so too.
>
> I have just written a patch so that gdb unwinds correctly on cortex-m
> exceptions, and this of course requires that gdb knows about at least
> psp.
Alright, that's indeed a very good reason.
Thanks,
Pedro Alves