You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/11/22 21:30:31 UTC

[GitHub] [incubator-nuttx] btashton edited a comment on issue #2366: debug: nuttx-gdbinit not producing backtraces on armv7e-m

btashton edited a comment on issue #2366:
URL: https://github.com/apache/incubator-nuttx/issues/2366#issuecomment-731850217


   @masayuki2009 I had to make an additional change to use `lookup_symbol` instead of `lookup_global_symbol` which returns a tuple with the first value as the symbol (or None).
   
   `python if (type(gdb.lookup_symbol("stm32_fpuconfig")[0]) is gdb.Symbol) : \`
   
   ```
   (gdb) info_nxthreads 
     0 Thread 0x24000358  (Name: Idle Task, State: Running, Priority: 0) 0x800238e in nx_start()
     1 Thread 0x380002f0  (Name: hpwork, State: Waiting,Signal, Priority: 224) 0x80091bc in arm_switchcontext()
     2 Thread 0x38000ec0  (Name: lpwork, State: Waiting,Signal, Priority: 100) 0x80091bc in arm_switchcontext()
     3 Thread 0x38001a90  (Name: init, State: Waiting,Semaphore, Priority: 100) 0x80091bc in arm_switchcontext()
   * 4 Thread 0x38002710  (Name: usbhost, State: Waiting,Semaphore, Priority: 100) 0x80091bc in arm_switchcontext()
   ```
   
   There are 22 different definitions of this {}_fpuconfig symbol so I am not quite sure what the change should be here. 


----------------------------------------------------------------
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.

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