No description
Find a file
xuxingliang e7c2e7c576 tools/gdb: use remote-register standard
GDB uses remote-register to describe g/G packet. Whatever the target is,
we can always find out the register offset in packet by `maint print
remote-registers`.

In NuttX, we follow the same standard to prepare the packet, in both
coredump and GDB stub.

For example, the CPSR for arm-v7a is at register number of 25, byte
offset of 164. So we define the CPSR in g_reg_offs (164 /4 = 41)th
elementent.

If GDB stub supports qXfer feature, then GDB will ask stub for target
descriptor, which is a standard xml file. If this file is provided, then
the register order is also changed. It's also reflected in 'maint print
remote-registers' output. JLink GDB server supports it for example.

We always use manually added second inferiort to query the original
remote register layout. So it can match with tcbinfo.

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-11-23 13:09:16 +08:00
.github build.yml: MSYS2 GitHub Action disable ccache 2024-11-23 01:48:24 +08:00
arch arch/arm64: syscall SYS_switch_context and SYS_restore_context use 0 para 2024-11-23 12:22:21 +08:00
audio Fix some minor style issues 2024-11-20 10:51:07 +01:00
binfmt binfmt: migrate to SPDX identifier 2024-11-05 20:44:29 +08:00
boards sim: Fix sim m32 start up crash issue. 2024-11-23 01:47:34 +08:00
cmake cmake(enhance):enhance NuttX cmake target dependencies and link_library modules 2024-11-22 15:16:07 -03:00
crypto crypto: migrate to SPDX identifier 2024-11-06 20:10:37 +08:00
Documentation Documentation/esp32s3-devkit: Add doc for USB ADB 2024-11-22 13:28:44 -03:00
drivers Fix Kconfig style 2024-11-20 16:45:40 -03:00
dummy build: add initial cmake build system 2023-07-08 13:50:48 +08:00
fs fs/littlefs: Add a kconfig to override littlefs version 2024-11-22 21:02:54 +08:00
graphics move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
include arm64: remove up_set_current_regs/up_current_regs 2024-11-23 02:05:56 +02:00
libs libs: add gcov framework support 2024-11-22 19:08:08 +08:00
mm mm/gran: Speed optimize gran_match 2024-11-20 01:07:01 +08:00
net net: Move NET_TCP/UDP_HAVE_STACK to netconfig.h 2024-11-21 23:07:30 +08:00
openamp Remove all jira and changeid information from the kernel 2024-11-06 02:04:03 +08:00
pass1 Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
sched assert: in assert we use small spinlock replace enter_critical_section 2024-11-20 12:22:58 -03:00
syscall Revert "system: pthread_barrierwait should be moved to kernel space" 2024-11-15 22:07:25 +08:00
tools tools/gdb: use remote-register standard 2024-11-23 13:09:16 +08:00
video Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
wireless Bluetooth: improved pairing process and host layer now successfully receives ACL packets 2024-11-10 14:33:52 -03:00
.asf.yaml
.gitignore tools/imx9: Add norimage support to bootloader 2024-11-22 18:53:21 +08:00
.pre-commit-config.yaml Created pre-commit config file 2024-08-19 21:40:56 +02:00
.yamllint
AUTHORS AUTHORS: add Yamamoto Takashi 2024-11-04 22:29:22 +08:00
CMakeLists.txt cmake(enhance):enhance NuttX cmake target dependencies and link_library modules 2024-11-22 15:16:07 -03:00
CONTRIBUTING.md Contributing and PR template fix. 2024-10-12 08:12:05 +08:00
INVIOLABLES.md
Kconfig clang:libclang_rt.builtins-xxx.a supports builtin 2024-10-28 16:38:45 +08:00
LICENSE libc string:Separate code. 2024-10-23 09:49:19 +08:00
Makefile tools: migrate to SPDX identifier 2024-09-10 23:11:11 +08:00
NOTICE
README.md Gathering community recommendations 2023-10-28 13:55:56 +08:00
ReleaseNotes Documentation: move ReleaseNotes 2023-09-26 20:41:00 +08:00

POSIX Badge License Issues Tracking Badge Contributors GitHub Build Badge Documentation Badge

Apache NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOSs (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).

For brevity, many parts of the documentation will refer to Apache NuttX as simply NuttX.

Getting Started

First time on NuttX? Read the Getting Started guide! If you don't have a board available, NuttX has its own simulator that you can run on terminal.

Documentation

You can find the current NuttX documentation on the Documentation Page.

Alternatively, you can build the documentation yourself by following the Documentation Build Instructions.

The old NuttX documentation is still available in the Apache wiki.

Supported Boards

NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.

Contributing

If you wish to contribute to the NuttX project, read the Contributing guidelines for information on Git usage, coding standard, workflow and the NuttX principles.

License

The code in this repository is under either the Apache 2 license, or a license compatible with the Apache 2 license. See the License Page for more information.