This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: armv7-M FPU support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]