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

   
   ## Summary
   
   [*Update this section with information on why change is necessary,
    what it exactly does and how, if new feature shows up, provide
    references (dependencies, similar problems and solutions), etc.*](arm32: 
add demo for gdbstub)
   
   ## Impact
   arm32
   
   ## Testing
   
   Gdbstub support
   ===========
     The Qemu version must be above 9.2 to support two serial ports.
   
     One window:
     ./tools/configure.sh qemu-armv7a:gdbstub; make -j25
     qemu-system-arm -cpu cortex-a7 -nographic -machine 
virt,virtualization=off,gic-version=2 -net none -kernel ./nuttx  -serial 
mon:stdio -serial pty
     char device redirected to /dev/pts/26 (label serial1)
     nx_start: Entry
     uart_register: Registering /dev/console
     uart_register: Registering /dev/ttyS0
   
     Another window:
     gdb-multiarch nuttx -ex "target remot /dev/pts/26"
     GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
     Copyright (C) 2024 Free Software Foundation, Inc.
     License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
     This is free software: you are free to change and redistribute it.
     There is NO WARRANTY, to the extent permitted by law.
     Type "show copying" and "show warranty" for details.
     This GDB was configured as "x86_64-linux-gnu".
     Type "show configuration" for configuration details.
     For bug reporting instructions, please see:
     <https://www.gnu.org/software/gdb/bugs/>.
     Find the GDB manual and other documentation resources online at:
         <http://www.gnu.org/software/gdb/documentation/>.
   
     For help, type "help".
     Type "apropos word" to search for commands related to "word"...
     Reading symbols from nuttx...
     Remote debugging using /dev/pts/26
     gdb_get_registers (state=0x402052f8) at gdbstub/lib_gdbstub.c:1020
     1020              reg = state->running_regs;
     (gdb) c
   


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