anjiahao1 commented on PR #11207:
URL: https://github.com/apache/nuttx/pull/11207#issuecomment-1820150262

   @masayuki2009 
   ```
   (base) ➜  nuttx git:(master) ✗ sudo lldb nuttx
   (lldb) target create "nuttx"
   Current executable set to 
'/Users/pengxianghao/Documents/code/nuttx_community/nuttx/nuttx' (arm64).
   (lldb) b nx_start
   Breakpoint 1: where = nuttx`nx_start, address = 0x0000000100006434
   (lldb) c
   error: Command requires a current process.
   (lldb) r
   Process 24321 launched: 
'/Users/pengxianghao/Documents/code/nuttx_community/nuttx/nuttx' (arm64)
   Process 24321 stopped
   * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
       frame #0: 0x0000000100006434 nuttx`nx_start
   nuttx`nx_start:
   ->  0x100006434 <+0>:  sub    sp, sp, #0x70
       0x100006438 <+4>:  stp    x29, x30, [sp, #0x60]
       0x10000643c <+8>:  b      0x100006440               ; <+12>
       0x100006440 <+12>: b      0x100006444               ; <+16>
   Target 0: (nuttx) stopped.
   (lldb) b bzero
   Breakpoint 2: 4 locations.
   (lldb) c
   Process 24321 resuming
   Process 24321 stopped
   * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1
       frame #0: 0x0000000100024584 nuttx`bzero
   nuttx`bzero:
   ->  0x100024584 <+0>:  sub    sp, sp, #0x20
       0x100024588 <+4>:  stp    x29, x30, [sp, #0x10]
       0x10002458c <+8>:  str    x0, [sp, #0x8]
       0x100024590 <+12>: str    x1, [sp]
   Target 0: (nuttx) stopped.
   (lldb) bt
   * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1
     * frame #0: 0x0000000100024584 nuttx`bzero
       frame #1: 0x0000000100006488 nuttx`nx_start + 84
       frame #2: 0x00000001000042f4 nuttx`sim_gpio_initialize - 
18446744069414567179
   (lldb) c
   Process 24321 resuming
   Process 24321 stopped
   * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1
       frame #0: 0x0000000100024584 nuttx`bzero
   nuttx`bzero:
   ->  0x100024584 <+0>:  sub    sp, sp, #0x20
       0x100024588 <+4>:  stp    x29, x30, [sp, #0x10]
       0x10002458c <+8>:  str    x0, [sp, #0x8]
       0x100024590 <+12>: str    x1, [sp]
   Target 0: (nuttx) stopped.
   (lldb) bt
   * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1
     * frame #0: 0x0000000100024584 nuttx`bzero
       frame #1: 0x00000001000245a0 nuttx`bzero + 28
       frame #2: 0x0000000100006488 nuttx`nx_start + 84
       frame #3: 0x00000001000042f4 nuttx`sim_gpio_initialize - 
18446744069414567179
   (lldb) c
   Process 24321 resuming
   Process 24321 stopped
   * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1
       frame #0: 0x0000000100024584 nuttx`bzero
   nuttx`bzero:
   ->  0x100024584 <+0>:  sub    sp, sp, #0x20
       0x100024588 <+4>:  stp    x29, x30, [sp, #0x10]
       0x10002458c <+8>:  str    x0, [sp, #0x8]
       0x100024590 <+12>: str    x1, [sp]
   Target 0: (nuttx) stopped.
   (lldb) bt
   * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1
     * frame #0: 0x0000000100024584 nuttx`bzero
       frame #1: 0x00000001000245a0 nuttx`bzero + 28
       frame #2: 0x00000001000245a0 nuttx`bzero + 28
       frame #3: 0x0000000100006488 nuttx`nx_start + 84
       frame #4: 0x00000001000042f4 nuttx`sim_gpio_initialize - 
18446744069414567179
   (lldb) q
   ```
   
   It looks like bzero has recursive behavior on macos.Any good suggestions?


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