anchao opened a new pull request, #7831:
URL: https://github.com/apache/nuttx/pull/7831

   
   ## Summary
   
   esp32c3/nsh: enable dumpstack/backtrace
   
   Dump task stack:
   ```
   | nsh> ps
   |   PID GROUP PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK   STACK 
COMMAND
   |     0     0   0 FIFO     Kthread N-- Ready              00000000 002016 
Idle Task
   |     1     1 100 RR       Task    --- Running            00000000 001984 
nsh_main
   | nsh> dumpstack 0 100
   | backtrace| 0: 0x4200764a 0x3fc82d60 0x420000b2 0x42000044
   | backtrace| 1: 0x42007e98 0x420036b4 0x4201043c 0x42010450 0x4200cab0 
0x42008fec 0x42009294 0x42008454
   | backtrace| 1: 0x42007fbe 0x42007f54 0x42006200 0x4200432c
   | backtrace| 2: 0x42013ec0 0x420119bc 0x42013abc 0x42006200 0x4200432c
   
   ```
   address to line:
   ```
   | $ riscv64-unknown-elf-addr2line -e nuttx 0x42007e98 0x420036b4 0x4201043c 
0x42010450 0x4200cab0 0x42008fec 0x42009294 0x42008454
   | nuttx/include/arch/syscall.h:238
   | nuttx/sched/semaphore/sem_wait.c:201
   | nuttx/sched/sched/sched_waitpid.c:127
   | nuttx/sched/sched/sched_waitpid.c:597
   | apps/nshlib/nsh_builtin.c:160
   | apps/nshlib/nsh_parse.c:543
   | apps/nshlib/nsh_parse.c:2736
   | apps/nshlib/nsh_session.c:234
   ```
   
   Signed-off-by: chao an <anc...@xiaomi.com>
   
   
   ## Impact
   
   N/A
   
   ## Testing
   
   ci-check


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to