gnidmoo

test.cpp

Jan 22nd, 2020
378
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Reading symbols from .\a.exe...done.
  2. (gdb) r
  3. Starting program: C:\Users\quent\Documents\a.exe
  4. [New Thread 24696.0xb0c]
  5. [New Thread 24696.0x5b90]
  6. [New Thread 24696.0x4150]
  7. Hello
  8. [Thread 24696.0x4150 exited with code 0]
  9. [Thread 24696.0x5b90 exited with code 0]
  10. [Inferior 1 (process 24696) exited normally]
  11. (gdb) b main
  12. Breakpoint 1 at 0x495760: file test.cpp, line 3.
  13. (gdb) r
  14. Starting program: C:\Users\quent\Documents\a.exe
  15. [New Thread 10152.0x4ad0]
  16. [New Thread 10152.0x33d4]
  17. [New Thread 10152.0x6df0]
  18.  
  19. Thread 1 hit Breakpoint 1, main (argc=1, argv=0xd82cf0) at test.cpp:3
  20. 3       int main(int argc, char **argv) {
  21. (gdb) s
  22. 0x0040b150 in __main ()
  23.     at C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/iostream:74
  24. 74        static ios_base::Init __ioinit;
  25. (gdb)
  26. main (argc=1, argv=0xd82cf0) at test.cpp:4
  27. 4               std::cout << "Hello" << std::endl;
  28. (gdb)
  29. std::operator<< <std::char_traits<char> > (__s=0x49f044 "Hello", __out=...)
  30.     at C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/char_traits.h:320
  31. 320             return __builtin_strlen(__s);
  32. (gdb)
  33. 0x0048f2a5 in std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int) ()
  34.     at C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/iostream:74
  35. 74        static ios_base::Init __ioinit;
  36. (gdb)
  37. 0x76b49e10 in msvcrt!fwrite () from C:\WINDOWS\System32\msvcrt.dll
  38. (gdb)
  39. Single stepping until exit from function msvcrt!fwrite,
  40. which has no line number information.
  41. 0x76b2cc0c in strerror_s () from C:\WINDOWS\System32\msvcrt.dll
  42. (gdb)
  43. Single stepping until exit from function strerror_s,
  44. which has no line number information.
  45. 0x76b49e1c in msvcrt!fwrite () from C:\WINDOWS\System32\msvcrt.dll
  46. (gdb)
  47. Single stepping until exit from function msvcrt!fwrite,
  48. which has no line number information.
  49. 0x76b389a0 in unlock () from C:\WINDOWS\System32\msvcrt.dll
  50. (gdb)
  51. Single stepping until exit from function unlock,
  52. which has no line number information.
  53. 0x76b36e30 in msvcrt!_lock () from C:\WINDOWS\System32\msvcrt.dll
  54. (gdb)
  55. Single stepping until exit from function msvcrt!_lock,
  56. which has no line number information.
  57. 0x76b389ca in unlock () from C:\WINDOWS\System32\msvcrt.dll
  58. (gdb)
  59. Single stepping until exit from function unlock,
  60. which has no line number information.
  61. 0x76b49e61 in msvcrt!fwrite () from C:\WINDOWS\System32\msvcrt.dll
  62. (gdb)
  63. Single stepping until exit from function msvcrt!fwrite,
  64. which has no line number information.
  65. 0x76b49c95 in msvcrt!ftell () from C:\WINDOWS\System32\msvcrt.dll
  66. (gdb)
  67. Single stepping until exit from function msvcrt!ftell,
  68. which has no line number information.
  69. 0x76b43740 in msvcrt!_flsbuf () from C:\WINDOWS\System32\msvcrt.dll
  70. (gdb)
  71. Single stepping until exit from function msvcrt!_flsbuf,
  72. which has no line number information.
  73. H0x76b49dc0 in msvcrt!ftell () from C:\WINDOWS\System32\msvcrt.dll
  74. (gdb)
  75. Single stepping until exit from function msvcrt!ftell,
  76. which has no line number information.
  77. 0x76b43700 in msvcrt!_fileno () from C:\WINDOWS\System32\msvcrt.dll
  78. (gdb)
  79. Single stepping until exit from function msvcrt!_fileno,
  80. which has no line number information.
  81. 0x76b49d8c in msvcrt!ftell () from C:\WINDOWS\System32\msvcrt.dll
  82. (gdb)
  83. Single stepping until exit from function msvcrt!ftell,
  84. which has no line number information.
  85. ello0x76b49e75 in msvcrt!fwrite () from C:\WINDOWS\System32\msvcrt.dll
  86. (gdb)
  87. Single stepping until exit from function msvcrt!fwrite,
  88. which has no line number information.
  89. 0x76b38a13 in unlock () from C:\WINDOWS\System32\msvcrt.dll
  90. (gdb)
  91. Single stepping until exit from function unlock,
  92. which has no line number information.
  93. 0x76f085d0 in ntdll!RtlLeaveCriticalSection () from C:\WINDOWS\SYSTEM32\ntdll.dll
  94. (gdb)
  95. Single stepping until exit from function ntdll!RtlLeaveCriticalSection,
  96. which has no line number information.
  97. 0x76b36ff5 in unlock () from C:\WINDOWS\System32\msvcrt.dll
  98. (gdb)
  99. Single stepping until exit from function unlock,
  100. which has no line number information.
  101. 0x76b49e99 in msvcrt!fwrite () from C:\WINDOWS\System32\msvcrt.dll
  102. (gdb)
  103. Single stepping until exit from function msvcrt!fwrite,
  104. which has no line number information.
  105. main (argc=1, argv=0xd82cf0) at test.cpp:4
  106. 4               std::cout << "Hello" << std::endl;
  107. (gdb)
  108. std::ostream::operator<< (__pf=<optimized out>, this=<optimized out>)
  109.     at C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/ostream:108
  110. 108           operator<<(__ostream_type& (*__pf)(__ostream_type&))
  111. (gdb)
  112. 0x00490670 in std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&) ()
  113.     at C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/iostream:74
  114. 74        static ios_base::Init __ioinit;
  115. (gdb)
  116. 0x76b59130 in msvcrt!memcmp () from C:\WINDOWS\System32\msvcrt.dll
  117. (gdb)
  118. Single stepping until exit from function msvcrt!memcmp,
  119. which has no line number information.
  120. 0x76b48fb0 in putc () from C:\WINDOWS\System32\msvcrt.dll
  121. (gdb)
  122. Single stepping until exit from function putc,
  123. which has no line number information.
  124. 0x76b2cc0c in strerror_s () from C:\WINDOWS\System32\msvcrt.dll
  125. (gdb)
  126. Single stepping until exit from function strerror_s,
  127. which has no line number information.
  128. 0x76b48fbc in putc () from C:\WINDOWS\System32\msvcrt.dll
  129. (gdb)
  130. Single stepping until exit from function putc,
  131. which has no line number information.
  132. 0x76b389a0 in unlock () from C:\WINDOWS\System32\msvcrt.dll
  133. (gdb)
  134. Single stepping until exit from function unlock,
  135. which has no line number information.
  136. 0x76b36e30 in msvcrt!_lock () from C:\WINDOWS\System32\msvcrt.dll
  137. (gdb)
  138. Single stepping until exit from function msvcrt!_lock,
  139. which has no line number information.
  140. 0x76b389ca in unlock () from C:\WINDOWS\System32\msvcrt.dll
  141. (gdb)
  142. Single stepping until exit from function unlock,
  143. which has no line number information.
  144. 0x76b48fee in putc () from C:\WINDOWS\System32\msvcrt.dll
  145. (gdb)
  146. Single stepping until exit from function putc,
  147. which has no line number information.
  148. 0x76b43740 in msvcrt!_flsbuf () from C:\WINDOWS\System32\msvcrt.dll
  149. (gdb)
  150. Single stepping until exit from function msvcrt!_flsbuf,
  151. which has no line number information.
  152.  
  153. 0x76b490a9 in putc () from C:\WINDOWS\System32\msvcrt.dll
  154. (gdb)
  155. Single stepping until exit from function putc,
  156. which has no line number information.
  157. 0x76b38a13 in unlock () from C:\WINDOWS\System32\msvcrt.dll
  158. (gdb)
  159. Single stepping until exit from function unlock,
  160. which has no line number information.
  161. 0x76f085d0 in ntdll!RtlLeaveCriticalSection () from C:\WINDOWS\SYSTEM32\ntdll.dll
  162. (gdb)
  163. Single stepping until exit from function ntdll!RtlLeaveCriticalSection,
  164. which has no line number information.
  165. 0x76b36ff5 in unlock () from C:\WINDOWS\System32\msvcrt.dll
  166. (gdb)
  167. Single stepping until exit from function unlock,
  168. which has no line number information.
  169. 0x76b490da in putc () from C:\WINDOWS\System32\msvcrt.dll
  170. (gdb)
  171. Single stepping until exit from function putc,
  172. which has no line number information.
  173. 0x76b43950 in msvcrt!fflush () from C:\WINDOWS\System32\msvcrt.dll
  174. (gdb)
  175. Single stepping until exit from function msvcrt!fflush,
  176. which has no line number information.
  177. 0x76b2cc0c in strerror_s () from C:\WINDOWS\System32\msvcrt.dll
  178. (gdb)
  179. Single stepping until exit from function strerror_s,
  180. which has no line number information.
  181. 0x76b4395c in msvcrt!fflush () from C:\WINDOWS\System32\msvcrt.dll
  182. (gdb)
  183. Single stepping until exit from function msvcrt!fflush,
  184. which has no line number information.
  185. 0x76b389a0 in unlock () from C:\WINDOWS\System32\msvcrt.dll
  186. (gdb)
  187. Single stepping until exit from function unlock,
  188. which has no line number information.
  189. 0x76b36e30 in msvcrt!_lock () from C:\WINDOWS\System32\msvcrt.dll
  190. (gdb)
  191. Single stepping until exit from function msvcrt!_lock,
  192. which has no line number information.
  193. 0x76b389ca in unlock () from C:\WINDOWS\System32\msvcrt.dll
  194. (gdb)
  195. Single stepping until exit from function unlock,
  196. which has no line number information.
  197. 0x76b43972 in msvcrt!fflush () from C:\WINDOWS\System32\msvcrt.dll
  198. (gdb)
  199. Single stepping until exit from function msvcrt!fflush,
  200. which has no line number information.
  201. 0x76b43883 in msvcrt!_flsbuf () from C:\WINDOWS\System32\msvcrt.dll
  202. (gdb)
  203. Single stepping until exit from function msvcrt!_flsbuf,
  204. which has no line number information.
  205. 0x76b4397d in msvcrt!fflush () from C:\WINDOWS\System32\msvcrt.dll
  206. (gdb)
  207. Single stepping until exit from function msvcrt!fflush,
  208. which has no line number information.
  209. 0x76b38a13 in unlock () from C:\WINDOWS\System32\msvcrt.dll
  210. (gdb)
  211. Single stepping until exit from function unlock,
  212. which has no line number information.
  213. 0x76f085d0 in ntdll!RtlLeaveCriticalSection () from C:\WINDOWS\SYSTEM32\ntdll.dll
  214. (gdb)
  215. Single stepping until exit from function ntdll!RtlLeaveCriticalSection,
  216. which has no line number information.
  217. 0x76b36ff5 in unlock () from C:\WINDOWS\System32\msvcrt.dll
  218. (gdb)
  219. Single stepping until exit from function unlock,
  220. which has no line number information.
  221. 0x76b439ad in msvcrt!fflush () from C:\WINDOWS\System32\msvcrt.dll
  222. (gdb)
  223. Single stepping until exit from function msvcrt!fflush,
  224. which has no line number information.
  225. main (argc=1, argv=0xd82cf0) at test.cpp:5
  226. 5               return 0;
  227. (gdb)
  228. 0x0040138b in __tmainCRTStartup ()
  229. (gdb)
  230. Single stepping until exit from function __tmainCRTStartup,
  231. which has no line number information.
  232. [Thread 10152.0x6df0 exited with code 0]
  233. [Thread 10152.0x33d4 exited with code 0]
  234. [Inferior 1 (process 10152) exited normally]
  235. (gdb)
  236. The program is not being run.
RAW Paste Data