Advertisement
wkchu

gef.log

Nov 20th, 2018
1,585
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 30.97 KB | None | 0 0
  1. Script started on 2018-11-20 21:12:00+01:00 [TERM="screen" TTY="/dev/pts/11" COLUMNS="213" LINES="57"]
  2. [user@archon opt]$
  3. [3@(reverse-i-search)`':a': arm-none-eabi-gdb /home/user/Documents/dev/git/u-boot/u-boot
  4. [1@r[1@m
  5. [user@archon opt]$
  6. GNU gdb (GDB) 8.2
  7. Copyright (C) 2018 Free Software Foundation, Inc.
  8. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  9. This is free software: you are free to change and redistribute it.
  10. There is NO WARRANTY, to the extent permitted by law.
  11. Type "show copying" and "show warranty" for details.
  12. This GDB was configured as "--host=x86_64-pc-linux-gnu --target=arm-none-eabi".
  13. Type "show configuration" for configuration details.
  14. For bug reporting instructions, please see:
  15. <http://www.gnu.org/software/gdb/bugs/>.
  16. Find the GDB manual and other documentation resources online at:
  17.     <http://www.gnu.org/software/gdb/documentation/>.
  18.  
  19. For help, type "help".
  20. Type "apropos word" to search for commands related to "word"...
  21. GEF for linux ready, type `gef' to start, `gef config' to configure
  22. 68 commands loaded for GDB 8.2 using Python engine 3.7
  23. [*] 5 commands could not be loaded, run `gef missing` to know why.
  24. Reading symbols from /home/user/Documents/dev/git/u-boot/u-boot...done.
  25. gef?  target remote :3333
  26. Remote debugging using :3333
  27. 0x00000000 in ?? ()
  28. [ Legend: Modified register | Code | Heap | Stack | String ]
  29. ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? registers ????
  30. $r0  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  31. $r1  : 0x0000041a  ?   ; <UNDEFINED> instruction: 0xffffffff
  32. $r2  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  33. $r3  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  34. $r4  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  35. $r5  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  36. $r6  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  37. $r7  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  38. $r8  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  39. $r9  : 0xc0e94ed8  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  40. $r10 : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  41. $r11 : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  42. $r12 : 0x00000008  ?  0x08008759  ?  0xcbf00046  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  43. $sp  : 0xc0e91b68  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  44. $lr  : 0x0802968d  ?  0x0cd30142  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  45. $pc  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  46. ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? stack ????
  47. [!] Command 'dereference' failed to execute properly, reason: Unknown register.
  48. [!] Command 'context' failed to execute properly, reason: Unknown register.
  49. gef?  
  50. gef?  gef config gef.debug
  51. gef?  gef config gef.debug 1
  52. gef?  mon reset halt
  53. Unable to match requested speed 2000 kHz, using 1800 kHz
  54. Unable to match requested speed 2000 kHz, using 1800 kHz
  55. adapter speed: 1800 kHz
  56. target halted due to debug-request, current mode: Thread
  57. xPSR: 0x01000000 pc: 0x080083fc msp: 0x20050000
  58. gef?  cinfo break
  59. No breakpoints or watchpoints.
  60. gef?  break board_init_f
  61. Breakpoint 1 at 0x8010b88: file common/board_f.c, line 954.
  62. gef?  c
  63. Continuing.
  64. Note: automatically using hardware breakpoints for read-only addresses.
  65.  
  66. Breakpoint 1, board_init_f (boot_flags=0x0) at common/board_f.c:954
  67. 954     gd->have_console = 0;
  68. [ Legend: Modified register | Code | Heap | Stack | String ]
  69. ????????????????????????????????????????????????????????????????????????????????????? registers ????
  70. $r0  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  71. $r1  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  72. $r2  : 0xffffffd8  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  73. $r3  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  74. $r4  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  75. $r5  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  76. $r6  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  77. $r7  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  78. $r8  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  79. $r9  : 0x2004f320  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  80. $r10 : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  81. $r11 : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  82. $r12 : 0x2004f3f8  ?  0x00f4e63a  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  83. $sp  : 0x2004f320  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  84. $lr  : 0x0800877d  ?  0x200048f8  ?  0x0e224680  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  85. $pc  : 0x08010b88  ?  0xb5082200  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  86. ????????????????????????????????????????????????????????????????????????????????????????? stack ????
  87.  
  88. ??????????????????????????????? Exception raised ???????????????????????????????
  89. ValueError: Unknown register.
  90. ????????????????????????????? Detailed stacktrace ??????????????????????????????
  91. ? File "/home/user/.gdbinit-gef.py", line 2386, in get_register()
  92.     ?     value = gdb.selected_frame().read_register(regname)
  93. ? File "/home/user/.gdbinit-gef.py", line 7835, in <listcomp>()
  94.     ?     regs = [(k, get_register(k)) for k in current_arch.all_registers]
  95. ? File "/home/user/.gdbinit-gef.py", line 7835, in pprint_dereferenced()
  96.     ?     regs = [(k, get_register(k)) for k in current_arch.all_registers]
  97. ? File "/home/user/.gdbinit-gef.py", line 7899, in do_invoke()
  98.     ?     gef_print(DereferenceCommand.pprint_dereferenced(start_address, i))
  99. ? File "/home/user/.gdbinit-gef.py", line 2317, in wrapper()
  100.     ?     return f(*args, **kwargs)
  101. ? File "/home/user/.gdbinit-gef.py", line 315, in wrapper()
  102.     ?     return f(*args, **kwargs)
  103. ? File "/home/user/.gdbinit-gef.py", line 3659, in invoke()
  104.     ?     bufferize(self.do_invoke)(argv)
  105. ????????????????????????????? Last 10 GDB commands ?????????????????????????????
  106. warning: bad breakpoint number at or near '0'
  107. ????????????????????????????? Runtime environment ??????????????????????????????
  108. * GDB: 8.2
  109. * Python: 3.7.1 - final
  110. __main__:936: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  111. * OS: Linux - 4.18.16-arch1-1-ARCH (64bit) on arch  
  112. ????????????????????????????????????????????????????????????????????????????????
  113.  
  114.  
  115. ??????????????????????????????? Exception raised ???????????????????????????????
  116. ValueError: Unknown register.
  117. ????????????????????????????? Detailed stacktrace ??????????????????????????????
  118. ? File "/home/user/.gdbinit-gef.py", line 2386, in get_register()
  119.     ?     value = gdb.selected_frame().read_register(regname)
  120. ? File "/home/user/.gdbinit-gef.py", line 1576, in is_thumb()
  121.     ?     return is_alive() and get_register("$cpsr") & (1<<5)
  122. ? File "/home/user/.gdbinit-gef.py", line 1581, in pc()
  123.     ?     if self.is_thumb():
  124. ? File "/home/user/.gdbinit-gef.py", line 7147, in context_code()
  125.     ?     pc = current_arch.pc
  126. ? File "/home/user/.gdbinit-gef.py", line 7022, in do_invoke()
  127.     ?     self.layout_mapping[section]()
  128. ? File "/home/user/.gdbinit-gef.py", line 2317, in wrapper()
  129.     ?     return f(*args, **kwargs)
  130. ? File "/home/user/.gdbinit-gef.py", line 319, in wrapper()
  131.     ?     rv = f(*args, **kwargs)
  132. ? File "/home/user/.gdbinit-gef.py", line 3659, in invoke()
  133.     ?     bufferize(self.do_invoke)(argv)
  134. ????????????????????????????? Last 10 GDB commands ?????????????????????????????
  135. warning: bad breakpoint number at or near '0'
  136. ????????????????????????????? Runtime environment ??????????????????????????????
  137. * GDB: 8.2
  138. * Python: 3.7.1 - final
  139. __main__:936: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  140. * OS: Linux - 4.18.16-arch1-1-ARCH (64bit) on arch  
  141. ????????????????????????????????????????????????????????????????????????????????
  142.  
  143. gef?  stepi
  144. halted: PC: 0x08010b8a
  145. 952 {
  146. [ Legend: Modified register | Code | Heap | Stack | String ]
  147. ????????????????????????????????????????????????????????????????????????????????????? registers ????
  148. $r0  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  149. $r1  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  150. $r2  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  151. $r3  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  152. $r4  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  153. $r5  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  154. $r6  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  155. $r7  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  156. $r8  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  157. $r9  : 0x2004f320  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  158. $r10 : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  159. $r11 : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  160. $r12 : 0x2004f3f8  ?  0x00f4e63a  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  161. $sp  : 0x2004f320  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  162. $lr  : 0x0800877d  ?  0x200048f8  ?  0x0e224680  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  163. $pc  : 0x08010b8a  ?  0xf8c9b508  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  164. ????????????????????????????????????????????????????????????????????????????????????????? stack ????
  165.  
  166. ??????????????????????????????? Exception raised ???????????????????????????????
  167. ValueError: Unknown register.
  168. ????????????????????????????? Detailed stacktrace ??????????????????????????????
  169. ? File "/home/user/.gdbinit-gef.py", line 2386, in get_register()
  170.     ?     value = gdb.selected_frame().read_register(regname)
  171. ? File "/home/user/.gdbinit-gef.py", line 7835, in <listcomp>()
  172.     ?     regs = [(k, get_register(k)) for k in current_arch.all_registers]
  173. ? File "/home/user/.gdbinit-gef.py", line 7835, in pprint_dereferenced()
  174.     ?     regs = [(k, get_register(k)) for k in current_arch.all_registers]
  175. ? File "/home/user/.gdbinit-gef.py", line 7899, in do_invoke()
  176.     ?     gef_print(DereferenceCommand.pprint_dereferenced(start_address, i))
  177. ? File "/home/user/.gdbinit-gef.py", line 2317, in wrapper()
  178.     ?     return f(*args, **kwargs)
  179. ? File "/home/user/.gdbinit-gef.py", line 315, in wrapper()
  180.     ?     return f(*args, **kwargs)
  181. ? File "/home/user/.gdbinit-gef.py", line 3659, in invoke()
  182.     ?     bufferize(self.do_invoke)(argv)
  183. ????????????????????????????? Last 10 GDB commands ?????????????????????????????
  184. warning: bad breakpoint number at or near '0'
  185. ????????????????????????????? Runtime environment ??????????????????????????????
  186. * GDB: 8.2
  187. * Python: 3.7.1 - final
  188. __main__:936: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  189. * OS: Linux - 4.18.16-arch1-1-ARCH (64bit) on arch  
  190. ????????????????????????????????????????????????????????????????????????????????
  191.  
  192.  
  193. ??????????????????????????????? Exception raised ???????????????????????????????
  194. ValueError: Unknown register.
  195. ????????????????????????????? Detailed stacktrace ??????????????????????????????
  196. ? File "/home/user/.gdbinit-gef.py", line 2386, in get_register()
  197.     ?     value = gdb.selected_frame().read_register(regname)
  198. ? File "/home/user/.gdbinit-gef.py", line 1576, in is_thumb()
  199.     ?     return is_alive() and get_register("$cpsr") & (1<<5)
  200. ? File "/home/user/.gdbinit-gef.py", line 1581, in pc()
  201.     ?     if self.is_thumb():
  202. ? File "/home/user/.gdbinit-gef.py", line 7147, in context_code()
  203.     ?     pc = current_arch.pc
  204. ? File "/home/user/.gdbinit-gef.py", line 7022, in do_invoke()
  205.     ?     self.layout_mapping[section]()
  206. ? File "/home/user/.gdbinit-gef.py", line 2317, in wrapper()
  207.     ?     return f(*args, **kwargs)
  208. ? File "/home/user/.gdbinit-gef.py", line 319, in wrapper()
  209.     ?     rv = f(*args, **kwargs)
  210. ? File "/home/user/.gdbinit-gef.py", line 3659, in invoke()
  211.     ?     bufferize(self.do_invoke)(argv)
  212. ????????????????????????????? Last 10 GDB commands ?????????????????????????????
  213. warning: bad breakpoint number at or near '0'
  214. ????????????????????????????? Runtime environment ??????????????????????????????
  215. * GDB: 8.2
  216. * Python: 3.7.1 - final
  217. __main__:936: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  218. * OS: Linux - 4.18.16-arch1-1-ARCH (64bit) on arch  
  219. ????????????????????????????????????????????????????????????????????????????????
  220.  
  221. gef?  stepi
  222. halted: PC: 0x08010b8c
  223. 953     gd->flags = boot_flags;
  224. [ Legend: Modified register | Code | Heap | Stack | String ]
  225. ????????????????????????????????????????????????????????????????????????????????????? registers ????
  226. $r0  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  227. $r1  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  228. $r2  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  229. $r3  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  230. $r4  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  231. $r5  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  232. $r6  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  233. $r7  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  234. $r8  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  235. $r9  : 0x2004f320  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  236. $r10 : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  237. $r11 : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  238. $r12 : 0x2004f3f8  ?  0x00f4e63a  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  239. $sp  : 0x2004f318  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  240. $lr  : 0x0800877d  ?  0x200048f8  ?  0x0e224680  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  241. $pc  : 0x08010b8c  ?  0x0004f8c9  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  242. ????????????????????????????????????????????????????????????????????????????????????????? stack ????
  243.  
  244. ??????????????????????????????? Exception raised ???????????????????????????????
  245. ValueError: Unknown register.
  246. ????????????????????????????? Detailed stacktrace ??????????????????????????????
  247. ? File "/home/user/.gdbinit-gef.py", line 2386, in get_register()
  248.     ?     value = gdb.selected_frame().read_register(regname)
  249. ? File "/home/user/.gdbinit-gef.py", line 7835, in <listcomp>()
  250.     ?     regs = [(k, get_register(k)) for k in current_arch.all_registers]
  251. ? File "/home/user/.gdbinit-gef.py", line 7835, in pprint_dereferenced()
  252.     ?     regs = [(k, get_register(k)) for k in current_arch.all_registers]
  253. ? File "/home/user/.gdbinit-gef.py", line 7899, in do_invoke()
  254.     ?     gef_print(DereferenceCommand.pprint_dereferenced(start_address, i))
  255. ? File "/home/user/.gdbinit-gef.py", line 2317, in wrapper()
  256.     ?     return f(*args, **kwargs)
  257. ? File "/home/user/.gdbinit-gef.py", line 315, in wrapper()
  258.     ?     return f(*args, **kwargs)
  259. ? File "/home/user/.gdbinit-gef.py", line 3659, in invoke()
  260.     ?     bufferize(self.do_invoke)(argv)
  261. ????????????????????????????? Last 10 GDB commands ?????????????????????????????
  262. warning: bad breakpoint number at or near '0'
  263. ????????????????????????????? Runtime environment ??????????????????????????????
  264. * GDB: 8.2
  265. * Python: 3.7.1 - final
  266. __main__:936: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  267. * OS: Linux - 4.18.16-arch1-1-ARCH (64bit) on arch  
  268. ????????????????????????????????????????????????????????????????????????????????
  269.  
  270.  
  271. ??????????????????????????????? Exception raised ???????????????????????????????
  272. ValueError: Unknown register.
  273. ????????????????????????????? Detailed stacktrace ??????????????????????????????
  274. ? File "/home/user/.gdbinit-gef.py", line 2386, in get_register()
  275.     ?     value = gdb.selected_frame().read_register(regname)
  276. ? File "/home/user/.gdbinit-gef.py", line 1576, in is_thumb()
  277.     ?     return is_alive() and get_register("$cpsr") & (1<<5)
  278. ? File "/home/user/.gdbinit-gef.py", line 1581, in pc()
  279.     ?     if self.is_thumb():
  280. ? File "/home/user/.gdbinit-gef.py", line 7147, in context_code()
  281.     ?     pc = current_arch.pc
  282. ? File "/home/user/.gdbinit-gef.py", line 7022, in do_invoke()
  283.     ?     self.layout_mapping[section]()
  284. ? File "/home/user/.gdbinit-gef.py", line 2317, in wrapper()
  285.     ?     return f(*args, **kwargs)
  286. ? File "/home/user/.gdbinit-gef.py", line 319, in wrapper()
  287.     ?     rv = f(*args, **kwargs)
  288. ? File "/home/user/.gdbinit-gef.py", line 3659, in invoke()
  289.     ?     bufferize(self.do_invoke)(argv)
  290. ????????????????????????????? Last 10 GDB commands ?????????????????????????????
  291. warning: bad breakpoint number at or near '0'
  292. ????????????????????????????? Runtime environment ??????????????????????????????
  293. * GDB: 8.2
  294. * Python: 3.7.1 - final
  295. __main__:936: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  296. * OS: Linux - 4.18.16-arch1-1-ARCH (64bit) on arch  
  297. ????????????????????????????????????????????????????????????????????????????????
  298.  
  299. gef?  stepi
  300. halted: PC: 0x08010b90
  301. 954     gd->have_console = 0;
  302. [ Legend: Modified register | Code | Heap | Stack | String ]
  303. ????????????????????????????????????????????????????????????????????????????????????? registers ????
  304. $r0  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  305. $r1  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  306. $r2  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  307. $r3  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  308. $r4  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  309. $r5  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  310. $r6  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  311. $r7  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  312. $r8  : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  313. $r9  : 0x2004f320  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  314. $r10 : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  315. $r11 : 0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  316. $r12 : 0x2004f3f8  ?  0x00f4e63a  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  317. $sp  : 0x2004f318  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  318. $lr  : 0x0800877d  ?  0x200048f8  ?  0x0e224680  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  319. $pc  : 0x08010b90  ?  0x201cf8c9  ?  0x00000000  ?  0x20050000  ?  0x88a20816  ?  0x00000000  ?  [loop detected]
  320. ????????????????????????????????????????????????????????????????????????????????????????? stack ????
  321.  
  322. ??????????????????????????????? Exception raised ???????????????????????????????
  323. ValueError: Unknown register.
  324. ????????????????????????????? Detailed stacktrace ??????????????????????????????
  325. ? File "/home/user/.gdbinit-gef.py", line 2386, in get_register()
  326.     ?     value = gdb.selected_frame().read_register(regname)
  327. ? File "/home/user/.gdbinit-gef.py", line 7835, in <listcomp>()
  328.     ?     regs = [(k, get_register(k)) for k in current_arch.all_registers]
  329. ? File "/home/user/.gdbinit-gef.py", line 7835, in pprint_dereferenced()
  330.     ?     regs = [(k, get_register(k)) for k in current_arch.all_registers]
  331. ? File "/home/user/.gdbinit-gef.py", line 7899, in do_invoke()
  332.     ?     gef_print(DereferenceCommand.pprint_dereferenced(start_address, i))
  333. ? File "/home/user/.gdbinit-gef.py", line 2317, in wrapper()
  334.     ?     return f(*args, **kwargs)
  335. ? File "/home/user/.gdbinit-gef.py", line 315, in wrapper()
  336.     ?     return f(*args, **kwargs)
  337. ? File "/home/user/.gdbinit-gef.py", line 3659, in invoke()
  338.     ?     bufferize(self.do_invoke)(argv)
  339. ????????????????????????????? Last 10 GDB commands ?????????????????????????????
  340. warning: bad breakpoint number at or near '0'
  341. ????????????????????????????? Runtime environment ??????????????????????????????
  342. * GDB: 8.2
  343. * Python: 3.7.1 - final
  344. __main__:936: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  345. * OS: Linux - 4.18.16-arch1-1-ARCH (64bit) on arch  
  346. ????????????????????????????????????????????????????????????????????????????????
  347.  
  348.  
  349. ??????????????????????????????? Exception raised ???????????????????????????????
  350. ValueError: Unknown register.
  351. ????????????????????????????? Detailed stacktrace ??????????????????????????????
  352. ? File "/home/user/.gdbinit-gef.py", line 2386, in get_register()
  353.     ?     value = gdb.selected_frame().read_register(regname)
  354. ? File "/home/user/.gdbinit-gef.py", line 1576, in is_thumb()
  355.     ?     return is_alive() and get_register("$cpsr") & (1<<5)
  356. ? File "/home/user/.gdbinit-gef.py", line 1581, in pc()
  357.     ?     if self.is_thumb():
  358. ? File "/home/user/.gdbinit-gef.py", line 7147, in context_code()
  359.     ?     pc = current_arch.pc
  360. ? File "/home/user/.gdbinit-gef.py", line 7022, in do_invoke()
  361.     ?     self.layout_mapping[section]()
  362. ? File "/home/user/.gdbinit-gef.py", line 2317, in wrapper()
  363.     ?     return f(*args, **kwargs)
  364. ? File "/home/user/.gdbinit-gef.py", line 319, in wrapper()
  365.     ?     rv = f(*args, **kwargs)
  366. ? File "/home/user/.gdbinit-gef.py", line 3659, in invoke()
  367.     ?     bufferize(self.do_invoke)(argv)
  368. ????????????????????????????? Last 10 GDB commands ?????????????????????????????
  369. warning: bad breakpoint number at or near '0'
  370. ????????????????????????????? Runtime environment ??????????????????????????????
  371. * GDB: 8.2
  372. * Python: 3.7.1 - final
  373. __main__:936: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  374. * OS: Linux - 4.18.16-arch1-1-ARCH (64bit) on arch  
  375. ????????????????????????????????????????????????????????????????????????????????
  376.  
  377. gef?  bt
  378. #0  board_init_f (boot_flags=0x0) at common/board_f.c:954
  379. #1  0x0800877c in _main () at arch/arm/lib/crt0.S:84
  380. #2  0x0800877c in _main () at arch/arm/lib/crt0.S:84
  381. Backtrace stopped: previous frame inner to this frame (corrupt stack?)
  382. gef?  list
  383. 949 };
  384. 950
  385. 951 void board_init_f(ulong boot_flags)
  386. 952 {
  387. 953     gd->flags = boot_flags;
  388. 954     gd->have_console = 0;
  389. 955
  390. 956     if (initcall_run_list(init_sequence_f))
  391. 957         hang();
  392. 958
  393. gef?  lsit
  394. Undefined command: "lsit".  Try "help".
  395. gef?  list
  396. 959 #if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX) && \
  397. 960         !defined(CONFIG_EFI_APP) && !CONFIG_IS_ENABLED(X86_64) && \
  398. 961         !defined(CONFIG_ARC)
  399. 962     /* NOTREACHED - jump_to_copy() does not return */
  400. 963     hang();
  401. 964 #endif
  402. 965 }
  403. 966
  404. 967 #if defined(CONFIG_X86) || defined(CONFIG_ARC)
  405. 968 /*
  406. gef?  list
  407. 969  * For now this code is only used on x86.
  408. 970  *
  409. 971  * init_sequence_f_r is the list of init functions which are run when
  410. 972  * U-Boot is executing from Flash with a semi-limited 'C' environment.
  411. 973  * The following limitations must be considered when implementing an
  412. 974  * '_f_r' function:
  413. 975  *  - 'static' variables are read-only
  414. 976  *  - Global Data (gd->xxx) is read/write
  415. 977  *
  416. 978  * The '_f_r' sequence must, as a minimum, copy U-Boot to RAM (if
  417. gef?  steq
  418. Detaching from program: /home/user/Documents/dev/git/u-boot/u-boot, Remote target
  419. Ending remote debugging.
  420. [Inferior 1 (Remote target) detached]
  421. [user@archon opt]$ exit
  422. exit
  423.  
  424. Script done on 2018-11-20 21:13:16+01:00 [COMMAND_EXIT_CODE="0"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement