public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Sébastien DI MERCURIO" <dimercur@gmail.com>
To: gdb@sourceware.org
Subject: Re: armv7-M FPU support
Date: Wed, 29 Feb 2012 16:02:00 -0000	[thread overview]
Message-ID: <CACCvUGMhcYf7mbGb+ia57v6P8_NEfQSCFqxjv5i0pPnF25a+pg@mail.gmail.com> (raw)
In-Reply-To: <CACCvUGPmT6pz+Rz4vNxkLpawz74a9UjCWFu2Ffr7UzgiXP3v6Q@mail.gmail.com>

Hi,

I am using Eclipse + GNU toolchain for my dev on a cortex-M4 embedded
MCU. Cortex-M4 is based on armv7-M architecture with FPU FPv4-SP.

On GDB, when I write "info all-registers", I get something like that:
r0             0x8000484        134218884
r1             0x100    256
r2             0x44444111       1145323793
r3             0x44444011       1145323537
r4             0x0      0
r5             0x44444011       1145323537
r6             0xa      10
r7             0x44444011       1145323537
r8             0x7bffffda       2080374746
r9             0xffffdf6c       4294958956
r10            0xa8fe7b46       2835249990
r11            0x5c628fb5       1549963189
r12            0xc00    3072
sp             0x20005000       0x20005000
lr             0xffffffff       4294967295
pc             0x80000ef        0x80000ef
f0             0        (raw 0x000000000000000000000000)
f1             0        (raw 0x000000000000000000000000)
f2             0        (raw 0x000000000000000000000000)
f3             0        (raw 0x000000000000000000000000)
f4             0        (raw 0x000000000000000000000000)
f5             0        (raw 0x000000000000000000000000)
f6             0        (raw 0x000000000000000000000000)
f7             0        (raw 0x000000000000000000000000)
fps            0x0      0
cpsr           0x1000020        16777248

Cortex-M4 doesn't have any Fx registers. FPU are named from S0 to S31
or from D0 to D15. When I enter "set architecture" command, I do not
see any armv7 architecture. Is this architecture and corresponding
registers files (either integer or floating point) supported by GDB ?

If so, how to get access to FPU registers ?
Thanks

Sebastien

           reply	other threads:[~2012-02-29 16:02 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CACCvUGPmT6pz+Rz4vNxkLpawz74a9UjCWFu2Ffr7UzgiXP3v6Q@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACCvUGMhcYf7mbGb+ia57v6P8_NEfQSCFqxjv5i0pPnF25a+pg@mail.gmail.com \
    --to=dimercur@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).