This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit ef6c0bfe0f13d86bdd0954cc116419d0e54801e2 Author: Marco Casaroli <[email protected]> AuthorDate: Fri Nov 27 04:09:31 2026 +0100 arch/x86_64: Remove the unused backtrace() of intel64_regdump.c. intel64_regdump.c defined a global function backtrace(uint64_t) that no code calls and no header declares. It has the name of the backtrace() function of <execinfo.h>, so in a flat build a program call of backtrace() links to it. Remove it. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- arch/x86_64/src/intel64/intel64_regdump.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/arch/x86_64/src/intel64/intel64_regdump.c b/arch/x86_64/src/intel64/intel64_regdump.c index f7bf47dba4b..c7c43246bbb 100644 --- a/arch/x86_64/src/intel64/intel64_regdump.c +++ b/arch/x86_64/src/intel64/intel64_regdump.c @@ -77,33 +77,6 @@ void print_mem(void *sp, size_t size) } } -void backtrace(uint64_t rbp) -{ - int i; - - _alert("Frame Dump (64 bytes):\n"); - - for (i = 0; i < 16; i++) - { - if ((rbp < 0x200000) || (rbp > 0xfffffffff)) - { - break; - } - - _alert(" %016" PRIx64 "\t%016" PRIx64 "\n", - *((uint64_t *)(rbp)), *((uint64_t *)(rbp + 1 * 8))); - - if ((rbp) && *((uint64_t *)(rbp + 1 * 8))) - { - rbp = *(uint64_t *)rbp; - } - else - { - break; - } - } -} - void up_dump_register(void *dumpregs) { volatile uint64_t *regs = dumpregs ? dumpregs : running_regs();
