Guest User

cpp gdb session

a guest
Jul 12th, 2014
627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.06 KB | None | 0 0
  1. This log is saved to: /tmp/gdb-cmds6068433025187625409.log
  2.  
  3. NB build: 201403101706
  4.  
  5. =thread-group-added,id="i1"
  6. ~"GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7\n"
  7. ~"Copyright (C) 2014 Free Software Foundation, Inc.\n"
  8. ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
  9. ~"This GDB was configured as \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details."
  10. ~"\nFor bug reporting instructions, please see:\n"
  11. ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
  12. ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
  13. ~"For help, type \"help\".\n"
  14. ~"Type \"apropos word\" to search for commands related to \"word\".\n"
  15. &"/home/robert/.gdbinit: Nie ma takiego pliku ani katalogu.\n"
  16. (gdb)
  17. 2-list-features
  18. 3info signals
  19. 4-gdb-set print repeat 0
  20. 5-gdb-set backtrace limit 1024
  21. 6-gdb-set print elements 400
  22. 7-gdb-set follow-fork-mode parent
  23. 8-gdb-set detach-on-fork on
  24. 9-enable-pretty-printing
  25. 10-file-exec-and-symbols "/home/robert/NetBeansProjects/CppApplication_1/dist/Debug/GNU-Linux-x86/cppapplication_1"
  26. 2^done,features=["frozen-varobjs","pending-breakpoints","thread-info","data-read-memory-bytes","breakpoint-notifications","ada-task-info","language-option","info-gdb-mi-command","undefined-command-error-code","exec-run-start-option","python"]
  27. (gdb)
  28. &"info signals\n"
  29. ~"Signal Stop\tPrint\tPass to program\tDescription\n"
  30. ~"\n"
  31. ~"SIGHUP Yes\tYes\tYes\t\tHangup\n"
  32. ~"SIGINT Yes\tYes\tNo\t\tInterrupt\n"
  33. ~"SIGQUIT Yes\tYes\tYes\t\tQuit\n"
  34. ~"SIGILL Yes\tYes\tYes\t\tIllegal instruction\n"
  35. ~"SIGTRAP Yes\tYes\tNo\t\tTrace/breakpoint trap\n"
  36. ~"SIGABRT Yes\tYes\tYes\t\tAborted\n"
  37. ~"SIGEMT Yes\tYes\tYes\t\tEmulation trap\n"
  38. ~"SIGFPE Yes\tYes\tYes\t\tArithmetic exception\n"
  39. ~"SIGKILL Yes\tYes\tYes\t\tKilled\n"
  40. ~"SIGBUS Yes\tYes\tYes\t\tBus error\n"
  41. ~"SIGSEGV Yes\tYes\tYes\t\tSegmentation fault\n"
  42. ~"SIGSYS Yes\tYes\tYes\t\tBad system call\n"
  43. ~"SIGPIPE Yes\tYes\tYes\t\tBroken pipe\n"
  44. ~"SIGALRM No\tNo\tYes\t\tAlarm clock\n"
  45. ~"SIGTERM Yes\tYes\tYes\t\tTerminated\n"
  46. ~"SIGURG No\tNo\tYes\t\tUrgent I/O condition\n"
  47. ~"SIGSTOP Yes\tYes\tYes\t\tStopped (signal)\n"
  48. ~"SIGTSTP Yes\tYes\tYes\t\tStopped (user)\n"
  49. ~"SIGCONT Yes\tYes\tYes\t\tContinued\n"
  50. ~"SIGCHLD No\tNo\tYes\t\tChild status changed\n"
  51. ~"SIGTTIN Yes\tYes\tYes\t\tStopped (tty input)\n"
  52. ~"SIGTTOU Yes\tYes\tYes\t\tStopped (tty output)\n"
  53. ~"SIGIO No\tNo\tYes\t\tI/O possible\n"
  54. ~"SIGXCPU Yes\tYes\tYes\t\tCPU time limit exceeded\n"
  55. ~"SIGXFSZ Yes\tYes\tYes\t\tFile size limit exceeded\n"
  56. ~"SIGVTALRM No\tNo\tYes\t\tVirtual timer expired\n"
  57. ~"SIGPROF No\tNo\tYes\t\tProfiling timer expired\n"
  58. ~"SIGWINCH No\tNo\tYes\t\tWindow size changed\n"
  59. ~"SIGLOST Yes\tYes\tYes\t\tResource lost\n"
  60. ~"SIGUSR1 Yes\tYes\tYes\t\tUser defined signal 1\n"
  61. ~"SIGUSR2 Yes\tYes\tYes\t\tUser defined signal 2\n"
  62. ~"SIGPWR Yes\tYes\tYes\t\tPower fail/restart\n"
  63. ~"SIGPOLL No\tNo\tYes\t\tPollable event occurred\n"
  64. ~"SIGWIND Yes\tYes\tYes\t\tSIGWIND\n"
  65. ~"SIGPHONE Yes\tYes\tYes\t\tSIGPHONE\n"
  66. ~"SIGWAITING No\tNo\tYes\t\tProcess's LWPs are blocked\n"
  67. ~"SIGLWP No\tNo\tYes\t\tSignal LWP\n"
  68. ~"SIGDANGER Yes\tYes\tYes\t\tSwap space dangerously low\n"
  69. ~"SIGGRANT Yes\tYes\tYes\t\tMonitor mode granted\n"
  70. ~"SIGRETRACT Yes\tYes\tYes\t\tNeed to relinquish monitor mode\n"
  71. ~"SIGMSG Yes\tYes\tYes\t\tMonitor mode data available\n"
  72. ~"SIGSOUND Yes\tYes\tYes\t\tSound completed\n"
  73. ~"SIGSAK Yes\tYes\tYes\t\tSecure attention\n"
  74. ~"SIGPRIO No\tNo\tYes\t\tSIGPRIO\n"
  75. ~"SIG33 Yes\tYes\tYes\t\tReal-time event 33\n"
  76. ~"SIG34 Yes\tYes\tYes\t\tReal-time event 34\n"
  77. ~"SIG35 Yes\tYes\tYes\t\tReal-time event 35\n"
  78. ~"SIG36 Yes\tYes\tYes\t\tReal-time event 36\n"
  79. ~"SIG37 Yes\tYes\tYes\t\tReal-time event 37\n"
  80. ~"SIG38 Yes\tYes\tYes\t\tReal-time event 38\n"
  81. ~"SIG39 Yes\tYes\tYes\t\tReal-time event 39\n"
  82. ~"SIG40 Yes\tYes\tYes\t\tReal-time event 40\n"
  83. ~"SIG41 Yes\tYes\tYes\t\tReal-time event 41\n"
  84. ~"SIG42 Yes\tYes\tYes\t\tReal-time event 42\n"
  85. ~"SIG43 Yes\tYes\tYes\t\tReal-time event 43\n"
  86. ~"SIG44 Yes\tYes\tYes\t\tReal-time event 44\n"
  87. ~"SIG45 Yes\tYes\tYes\t\tReal-time event 45\n"
  88. ~"SIG46 Yes\tYes\tYes\t\tReal-time event 46\n"
  89. ~"SIG47 Yes\tYes\tYes\t\tReal-time event 47\n"
  90. ~"SIG48 Yes\tYes\tYes\t\tReal-time event 48\n"
  91. ~"SIG49 Yes\tYes\tYes\t\tReal-time event 49\n"
  92. ~"SIG50 Yes\tYes\tYes\t\tReal-time event 50\n"
  93. ~"SIG51 Yes\tYes\tYes\t\tReal-time event 51\n"
  94. ~"SIG52 Yes\tYes\tYes\t\tReal-time event 52\n"
  95. ~"SIG53 Yes\tYes\tYes\t\tReal-time event 53\n"
  96. ~"SIG54 Yes\tYes\tYes\t\tReal-time event 54\n"
  97. ~"SIG55 Yes\tYes\tYes\t\tReal-time event 55\n"
  98. ~"SIG56 Yes\tYes\tYes\t\tReal-time event 56\n"
  99. ~"SIG57 Yes\tYes\tYes\t\tReal-time event 57\n"
  100. ~"SIG58 Yes\tYes\tYes\t\tReal-time event 58\n"
  101. ~"SIG59 Yes\tYes\tYes\t\tReal-time event 59\n"
  102. ~"SIG60 Yes\tYes\tYes\t\tReal-time event 60\n"
  103. ~"SIG61 Yes\tYes\tYes\t\tReal-time event 61\n"
  104. ~"SIG62 Yes\tYes\tYes\t\tReal-time event 62\n"
  105. ~"SIG63 Yes\tYes\tYes\t\tReal-time event 63\n"
  106. ~"SIGCANCEL No\tNo\tYes\t\tLWP internal signal\n"
  107. ~"SIG32 Yes\tYes\tYes\t\tReal-time event 32\n"
  108. ~"SIG64 Yes\tYes\tYes\t\tReal-time event 64\n"
  109. ~"SIG65 Yes\tYes\tYes\t\tReal-time event 65\n"
  110. ~"SIG66 Yes\tYes\tYes\t\tReal-time event 66\n"
  111. ~"SIG67 Yes\tYes\tYes\t\tReal-time event 67\n"
  112. ~"SIG68 Yes\tYes\tYes\t\tReal-time event 68\n"
  113. ~"SIG69 Yes\tYes\tYes\t\tReal-time event 69\n"
  114. ~"SIG70 Yes\tYes\tYes\t\tReal-time event 70\n"
  115. ~"SIG71 Yes\tYes\tYes\t\tReal-time event 71\n"
  116. ~"SIG72 Yes\tYes\tYes\t\tReal-time event 72\n"
  117. ~"SIG73 Yes\tYes\tYes\t\tReal-time event 73\n"
  118. ~"SIG74 Yes\tYes\tYes\t\tReal-time event 74\n"
  119. ~"SIG75 Yes\tYes\tYes\t\tReal-time event 75\n"
  120. ~"SIG76 Yes\tYes\tYes\t\tReal-time event 76\n"
  121. ~"SIG77 Yes\tYes\tYes\t\tReal-time event 77\n"
  122. ~"SIG78 Yes\tYes\tYes\t\tReal-time event 78\n"
  123. ~"SIG79 Yes\tYes\tYes\t\tReal-time event 79\n"
  124. ~"SIG80 Yes\tYes\tYes\t\tReal-time event 80\n"
  125. ~"SIG81 Yes\tYes\tYes\t\tReal-time event 81\n"
  126. ~"SIG82 Yes\tYes\tYes\t\tReal-time event 82\n"
  127. ~"SIG83 Yes\tYes\tYes\t\tReal-time event 83\n"
  128. ~"SIG84 Yes\tYes\tYes\t\tReal-time event 84\n"
  129. ~"SIG85 Yes\tYes\tYes\t\tReal-time event 85\n"
  130. ~"SIG86 Yes\tYes\tYes\t\tReal-time event 86\n"
  131. ~"SIG87 Yes\tYes\tYes\t\tReal-time event 87\n"
  132. ~"SIG88 Yes\tYes\tYes\t\tReal-time event 88\n"
  133. ~"SIG89 Yes\tYes\tYes\t\tReal-time event 89\n"
  134. ~"SIG90 Yes\tYes\tYes\t\tReal-time event 90\n"
  135. ~"SIG91 Yes\tYes\tYes\t\tReal-time event 91\n"
  136. ~"SIG92 Yes\tYes\tYes\t\tReal-time event 92\n"
  137. ~"SIG93 Yes\tYes\tYes\t\tReal-time event 93\n"
  138. ~"SIG94 Yes\tYes\tYes\t\tReal-time event 94\n"
  139. ~"SIG95 Yes\tYes\tYes\t\tReal-time event 95\n"
  140. ~"SIG96 Yes\tYes\tYes\t\tReal-time event 96\n"
  141. ~"SIG97 Yes\tYes\tYes\t\tReal-time event 97\n"
  142. ~"SIG98 Yes\tYes\tYes\t\tReal-time event 98\n"
  143. ~"SIG99 Yes\tYes\tYes\t\tReal-time event 99\n"
  144. ~"SIG100 Yes\tYes\tYes\t\tReal-time event 100\n"
  145. ~"SIG101 Yes\tYes\tYes\t\tReal-time event 101\n"
  146. ~"SIG102 Yes\tYes\tYes\t\tReal-time event 102\n"
  147. ~"SIG103 Yes\tYes\tYes\t\tReal-time event 103\n"
  148. ~"SIG104 Yes\tYes\tYes\t\tReal-time event 104\n"
  149. ~"SIG105 Yes\tYes\tYes\t\tReal-time event 105\n"
  150. ~"SIG106 Yes\tYes\tYes\t\tReal-time event 106\n"
  151. ~"SIG107 Yes\tYes\tYes\t\tReal-time event 107\n"
  152. ~"SIG108 Yes\tYes\tYes\t\tReal-time event 108\n"
  153. ~"SIG109 Yes\tYes\tYes\t\tReal-time event 109\n"
  154. ~"SIG110 Yes\tYes\tYes\t\tReal-time event 110\n"
  155. ~"SIG111 Yes\tYes\tYes\t\tReal-time event 111\n"
  156. ~"SIG112 Yes\tYes\tYes\t\tReal-time event 112\n"
  157. ~"SIG113 Yes\tYes\tYes\t\tReal-time event 113\n"
  158. ~"SIG114 Yes\tYes\tYes\t\tReal-time event 114\n"
  159. ~"SIG115 Yes\tYes\tYes\t\tReal-time event 115\n"
  160. ~"SIG116 Yes\tYes\tYes\t\tReal-time event 116\n"
  161. ~"SIG117 Yes\tYes\tYes\t\tReal-time event 117\n"
  162. ~"SIG118 Yes\tYes\tYes\t\tReal-time event 118\n"
  163. ~"SIG119 Yes\tYes\tYes\t\tReal-time event 119\n"
  164. ~"SIG120 Yes\tYes\tYes\t\tReal-time event 120\n"
  165. ~"SIG121 Yes\tYes\tYes\t\tReal-time event 121\n"
  166. ~"SIG122 Yes\tYes\tYes\t\tReal-time event 122\n"
  167. ~"SIG123 Yes\tYes\tYes\t\tReal-time event 123\n"
  168. ~"SIG124 Yes\tYes\tYes\t\tReal-time event 124\n"
  169. ~"SIG125 Yes\tYes\tYes\t\tReal-time event 125\n"
  170. ~"SIG126 Yes\tYes\tYes\t\tReal-time event 126\n"
  171. ~"SIG127 Yes\tYes\tYes\t\tReal-time event 127\n"
  172. ~"SIGINFO Yes\tYes\tYes\t\tInformation request\n"
  173. ~"EXC_BAD_ACCESS Yes\tYes\tYes\t\tCould not access memory\n"
  174. ~"EXC_BAD_INSTRUCTION Yes\tYes\tYes\t\tIllegal instruction/operand\n"
  175. ~"EXC_ARITHMETIC Yes\tYes\tYes\t\tArithmetic exception\n"
  176. ~"EXC_EMULATION Yes\tYes\tYes\t\tEmulation instruction\n"
  177. ~"EXC_SOFTWARE Yes\tYes\tYes\t\tSoftware generated exception\n"
  178. ~"EXC_BREAKPOINT Yes\tYes\tYes\t\tBreakpoint\n"
  179. ~"\nUse the \"handle\" command to change these tables.\n"
  180. 3^done
  181. (gdb)
  182. 4^done
  183. (gdb)
  184. 5^done
  185. (gdb)
  186. 6^done
  187. (gdb)
  188. 7^done
  189. (gdb)
  190. 8^done
  191. (gdb)
  192. 9^done
  193. (gdb)
  194. 10^done
  195. 11cd /home/robert/NetBeansProjects/CppApplication_1
  196. 12-exec-arguments
  197. 13-break-insert -f "/home/robert/NetBeansProjects/helloWorld/src/helloWorld/cpp/main.cpp:5"
  198. 14-break-insert -f "/home/robert/NetBeansProjects/CppApplication_1/main.cpp:16"
  199. (gdb)
  200. &"cd /home/robert/NetBeansProjects/CppApplication_1\n"
  201. ~"Working directory /home/robert/NetBeansProjects/CppApplication_1.\n"
  202. 11^done
  203. (gdb)
  204. 12^done
  205. (gdb)
  206. &"No source file named /home/robert/NetBeansProjects/helloWorld/src/helloWorld/cpp/main.cpp.\n"
  207. 13^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="/home/robert/NetBeansProjects/helloWorld/src/helloWorld/cpp/main.cpp:5",times="0",original-location="/home/robert/NetBeansProjects/helloWorld/src/helloWorld/cpp/main.cpp:5"}
  208. (gdb)
  209. 14^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00000000004004f8",func="main(int, char**)",file="main.cpp",fullname="/home/robert/NetBeansProjects/CppApplication_1/main.cpp",line="16",thread-groups=["i1"],times="0",original-location="/home/robert/NetBeansProjects/CppApplication_1/main.cpp:16"}
  210. (gdb)
  211. 15-break-insert -t _start
  212. 15^done,bkpt={number="3",type="breakpoint",disp="del",enabled="y",addr="0x0000000000400400",at="<_start>",thread-groups=["i1"],times="0",original-location="_start"}
  213. 16-exec-run
  214. (gdb)
  215. =thread-group-started,id="i1",pid="4232"
  216. =thread-created,id="1",group-id="i1"
  217. 16^running
  218. *running,thread-id="all"
  219. (gdb)
  220. =library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1"
  221. =library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1"
  222. =breakpoint-modified,bkpt={number="3",type="breakpoint",disp="del",enabled="y",addr="0x0000000000400400",at="<_start>",thread-groups=["i1"],times="1",original-location="_start"}
  223. *stopped,reason="breakpoint-hit",disp="del",bkptno="3",frame={addr="0x0000000000400400",func="_start",args=[]},thread-id="1",stopped-threads="all",core="2"
  224. 17-exec-continue
  225. =breakpoint-deleted,id="3"
  226. (gdb)
  227. 17^running
  228. No answer for: 16-exec-run
  229.  
  230. *running,thread-id="all"
  231. (gdb)
  232. =breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00000000004004f8",func="main(int, char**)",file="main.cpp",fullname="/home/robert/NetBeansProjects/CppApplication_1/main.cpp",line="16",thread-groups=["i1"],times="1",original-location="/home/robert/NetBeansProjects/CppApplication_1/main.cpp:16"}
  233. *stopped,reason="breakpoint-hit",disp="keep",bkptno="2",frame={addr="0x00000000004004f8",func="main",args=[{name="argc",value="1"},{name="argv",value="0x7fffffffe3b8"}],file="main.cpp",fullname="/home/robert/NetBeansProjects/CppApplication_1/main.cpp",line="16"},thread-id="1",stopped-threads="all",core="3"
  234. 18-stack-list-frames
  235. (gdb)
  236. 18^done,stack=[frame={level="0",addr="0x00000000004004f8",func="main",file="main.cpp",fullname="/home/robert/NetBeansProjects/CppApplication_1/main.cpp",line="16"}]
  237. No answer for: 17-exec-continue
  238.  
  239. 19-stack-list-arguments 1
  240. (gdb)
  241. 19^done,stack-args=[frame={level="0",args=[{name="argc",value="1"},{name="argv",value="0x7fffffffe3b8"}]}]
  242. (gdb)
Advertisement
Add Comment
Please, Sign In to add comment