.gdbinit 853 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # This is very much a work in progress to show how we can use macros to make the
  3. # GDB interface a lot more useable. For example the next / step commands only
  4. # work if the stepper doesn't leave the current scope. Beyond that you have a
  5. # single hardware breakpoint which can be used as an hb or a wa. You have to
  6. # remember to delete the previous one, so the br macro does this for you.
  7. #
  8. file app/.output/eagle/debug/image/eagle.app.v6.out
  9. #set remotedebug 1
  10. set remotelogfile gdb_rsp_logfile.txt
  11. set serial baud 115200
  12. set remote hardware-breakpoint-limit 1
  13. set remote hardware-watchpoint-limit 1
  14. #set debug xtensa 4
  15. target remote /dev/ttyUSB0
  16. set confirm off
  17. set print null-stop
  18. define br
  19. d
  20. hb $arg0
  21. end
  22. define upto
  23. d
  24. hb $arg0
  25. c
  26. end
  27. set pagination off
  28. set history filename ~/.gdb_history
  29. set history save on
  30. set history size 1000