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

   ## Summary
   
   tools/nuttx-gdbinit: restore the context at the end of each command
   
   after executing commands such as nxthread_*, you can enter c to continue the 
program directly
   
   Signed-off-by: chao an <[email protected]>
   
   ## Impact
   
   N/A
   
   ## Testing
   
   ```
   (gdb) nxthread_all_bt 
   * 0 Thread 0x555b9c80  (Name: Idle Task, State: Running, Priority: 0, Stack: 
0/69584) PC: 0xf7e501e4 in clock_nanosleep()
   #0  0x00007ffff7e501e4 in __GI___clock_nanosleep (clock_id=<optimized out>, 
clock_id@entry=0, flags=flags@entry=0, req=req@entry=0x7fffffffe2e0, 
rem=rem@entry=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
   #1  0x00007ffff7e55ef7 in __GI___nanosleep 
(requested_time=requested_time@entry=0x7fffffffe2e0, 
remaining=remaining@entry=0x0) at nanosleep.c:27
   #2  0x00007ffff7e8888f in usleep (useconds=<optimized out>) at 
../sysdeps/posix/usleep.c:32
   #3  0x00005555555a0e6c in sim_host_sleepuntil (nsec=13280000000) at 
sim/posix/sim_hosttime.c:85
   #4  0x000055555556af0b in sim_timer_update () at sim/sim_oneshot.c:445
   #5  0x000055555556a1f4 in up_idle () at sim/sim_idle.c:81
   #6  0x000055555555fae3 in nx_start () at init/nx_start.c:697
   #7  0x000055555555f40b in main (argc=1, argv=0x7fffffffe4b8, 
envp=0x7fffffffe4c8) at sim/sim_head.c:130
   saved current_tcb (pid=0)
     1 Thread 0xf3e723c0  (Name: loop_task, State: Waiting,Signal, Priority: 
255, Stack: 0/67504) PC: 0x5556a5a1 in up_switch_context()
   #0  0x000055555556a5a1 in up_switch_context (tcb=0x5555555b9c80 <g_idletcb>, 
rtcb=0x7ffff3e723c0) at 
   ...
   (gdb) c 
   nsh>
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to