summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorHui Su <[email protected]>2026-08-28 11:13:16 +0800
committerRbb666 <[email protected]>2026-08-28 11:29:05 +0800
commit0ae80cc79c8071a7abcd11e133a04975bedfb238 (patch)
tree426a1d634ffa1d58a6d9c2a25869888493fbf810 /libcpu
parent5abbbec42022a9a28f060a7fc29d68d1f71e2d3f (diff)
[bsp/qemu-vexpress-a9] support function names in backtraces
Pass -mpoke-function-name to the compiler and assembler when RT_BACKTRACE_FUNCTION_NAME is enabled for the Cortex-A9 QEMU BSP. Keep the BSP configuration opt-in so users can enable symbolized backtraces through menuconfig without changing the default build. The flag is appended through CCFLAGS and ASPPCOM after the build environment is created instead of concatenating it into CFLAGS/CXXFLAGS/ASFLAGS: when the toolchain is selected with --exec-path, PrepareBuilding() reloads rtconfig and _apply_exec_path_override() overwrites those variables, which would silently drop the option. The build still succeeds but function names are missing from the text section, leaving backtraces without usable frames. Example backtrace in QEMU (vexpress-a9, RT_BACKTRACE_FUNCTION_NAME=y, fault triggered from msh through cmd_fault -> fault_level1 -> fault_level2 -> fault_level3): backtrace: 0x600475a8 @ fault_level3 0x600475dc @ fault_level2 0x60047608 @ fault_level1 0x60047630 @ cmd_fault 0x6006ca80 @ _msh_exec_cmd 0x6006cb3c @ msh_exec 0x600717b4 @ finsh_thread_entry Signed-off-by: Hui Su <[email protected]>
Diffstat (limited to 'libcpu')
0 files changed, 0 insertions, 0 deletions