superxyxiao opened a new issue, #7617:
URL: https://github.com/apache/incubator-nuttx/issues/7617

   This is what I do as follows:
   (gdb) load nuttx
   Loading section .text, size 0x1523f lma 0x8000000
   Loading section .ARM.exidx, size 0x8 lma 0x8015240
   Loading section .data, size 0x64 lma 0x8015248
   Start address 0x8000268, load size 86699
   Transfer rate: 27 KB/sec, 10837 bytes/write.
   (gdb) load nuttx_user.elf 
   Loading section .userspace, size 0x34 lma 0x8020000
   Loading section .text, size 0xacd3 lma 0x8020034
   Loading section .ARM.exidx, size 0x8 lma 0x802ad08
   Loading section .data, size 0x8 lma 0x802ad10
   Start address 0x80200bc, load size 44311
   Transfer rate: 13 KB/sec, 7385 bytes/write.
   (gdb) symbol-file nuttx
   Reading symbols from nuttx...done.
   (gdb) add-symbol-file nuttx_user.elf  0x8020034 
   add symbol table from file "nuttx_user.elf" at
        .text_addr = 0x8020034
   (y or n) y
   Reading symbols from nuttx_user.elf...done.
   (gdb) hd hello_main
   Undefined command: "hd".  Try "help".
   (gdb) hbreak  hello_main
   Hardware assisted breakpoint 1 at 0x802989e: file hello_main.c, line 53.
   (gdb) c
   Continuing.
   
   Program received signal SIGTRAP, Trace/breakpoint trap.
   exception_common () at armv7-m/gnu/up_exception.S:142
   142          mrs             r0, ipsr                                /* 
R0=exception number */
   (gdb) 
   


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

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

Reply via email to