gdbinit 479 B

1234567891011121314151617181920212223242526272829303132
  1. # CM4 port
  2. target remote:3333
  3. # Open all memory
  4. set mem inaccessible-by-default off
  5. # Enable semihosting
  6. monitor arm semihosting enable
  7. # Load the executable
  8. # load <LOCATION OF ELF FILE>
  9. # Reset device
  10. monitor reset run
  11. # Halt device
  12. monitor halt
  13. # Reset device via dedicated reset method
  14. monitor psoc6 reset_halt sysresetreq
  15. flushregs
  16. mon gdb_sync
  17. stepi
  18. # Set temporary breakpoint at main
  19. tbreak main
  20. # Print registers
  21. monitor reg
  22. # Continue program execution
  23. continue