Advertisement
Guest User

tm_gdb

a guest
May 11th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GDB 1.63 KB | None | 0 0
  1. luke@debian:~/altos/src/telemega-v2.0$ arm-none-eabi-gdb telemega-v2.0-1.7.elf
  2. GNU gdb (7.7.1+dfsg-1+6) 7.7.1
  3. Copyright (C) 2014 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  7. and "show warranty" for details.
  8. This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
  9. Type "show configuration" for configuration details.
  10. For bug reporting instructions, please see:
  11. <http://www.gnu.org/software/gdb/bugs/>.
  12. Find the GDB manual and other documentation resources online at:
  13. <http://www.gnu.org/software/gdb/documentation/>.
  14. For help, type "help".
  15. Type "apropos word" to search for commands related to "word"...
  16. Reading symbols from telemega-v2.0-1.7.elf...done.
  17. (gdb) target remote:3333
  18. Remote debugging using :3333
  19. 0x080001b4 in ?? ()
  20. (gdb) break black_box.c:8
  21. Breakpoint 1 at 0x800ab3e: file black_box.c, line 8.
  22. (gdb) cont
  23. Continuing.
  24. Note: automatically using hardware breakpoints for read-only addresses.
  25.  
  26. Breakpoint 1, ao_black_box () at black_box.c:8
  27. 8           ao_led_on(LED_PIN_GREEN);
  28. (gdb) s
  29. ao_led_on (colors=colors@entry=9) at ../stm/ao_led.c:27
  30. 27      LED_PORT->bsrr = (colors & ao_led_enable);
  31. (gdb) s
  32. ao_black_box () at black_box.c:9
  33. 9           ao_delay(AO_SEC_TO_TICKS(1));
  34. (gdb) quit
  35. A debugging session is active.
  36.  
  37.     Inferior 1 [Remote target] will be detached.
  38.  
  39. Quit anyway? (y or n) y
  40. Detaching from program: /home/luke/altos/src/telemega-v2.0/telemega-v2.0-1.7.elf, Remote target
  41. Ending remote debugging.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement