Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Reading symbols from .\a.exe...done.
- (gdb) r
- Starting program: C:\Users\quent\Documents\a.exe
- [New Thread 24696.0xb0c]
- [New Thread 24696.0x5b90]
- [New Thread 24696.0x4150]
- Hello
- [Thread 24696.0x4150 exited with code 0]
- [Thread 24696.0x5b90 exited with code 0]
- [Inferior 1 (process 24696) exited normally]
- (gdb) b main
- Breakpoint 1 at 0x495760: file test.cpp, line 3.
- (gdb) r
- Starting program: C:\Users\quent\Documents\a.exe
- [New Thread 10152.0x4ad0]
- [New Thread 10152.0x33d4]
- [New Thread 10152.0x6df0]
- Thread 1 hit Breakpoint 1, main (argc=1, argv=0xd82cf0) at test.cpp:3
- 3 int main(int argc, char **argv) {
- (gdb) s
- 0x0040b150 in __main ()
- 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
- 74 static ios_base::Init __ioinit;
- (gdb)
- main (argc=1, argv=0xd82cf0) at test.cpp:4
- 4 std::cout << "Hello" << std::endl;
- (gdb)
- std::operator<< <std::char_traits<char> > (__s=0x49f044 "Hello", __out=...)
- 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
- 320 return __builtin_strlen(__s);
- (gdb)
- 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) ()
- 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
- 74 static ios_base::Init __ioinit;
- (gdb)
- 0x76b49e10 in msvcrt!fwrite () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!fwrite,
- which has no line number information.
- 0x76b2cc0c in strerror_s () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function strerror_s,
- which has no line number information.
- 0x76b49e1c in msvcrt!fwrite () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!fwrite,
- which has no line number information.
- 0x76b389a0 in unlock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function unlock,
- which has no line number information.
- 0x76b36e30 in msvcrt!_lock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!_lock,
- which has no line number information.
- 0x76b389ca in unlock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function unlock,
- which has no line number information.
- 0x76b49e61 in msvcrt!fwrite () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!fwrite,
- which has no line number information.
- 0x76b49c95 in msvcrt!ftell () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!ftell,
- which has no line number information.
- 0x76b43740 in msvcrt!_flsbuf () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!_flsbuf,
- which has no line number information.
- H0x76b49dc0 in msvcrt!ftell () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!ftell,
- which has no line number information.
- 0x76b43700 in msvcrt!_fileno () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!_fileno,
- which has no line number information.
- 0x76b49d8c in msvcrt!ftell () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!ftell,
- which has no line number information.
- ello0x76b49e75 in msvcrt!fwrite () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!fwrite,
- which has no line number information.
- 0x76b38a13 in unlock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function unlock,
- which has no line number information.
- 0x76f085d0 in ntdll!RtlLeaveCriticalSection () from C:\WINDOWS\SYSTEM32\ntdll.dll
- (gdb)
- Single stepping until exit from function ntdll!RtlLeaveCriticalSection,
- which has no line number information.
- 0x76b36ff5 in unlock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function unlock,
- which has no line number information.
- 0x76b49e99 in msvcrt!fwrite () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!fwrite,
- which has no line number information.
- main (argc=1, argv=0xd82cf0) at test.cpp:4
- 4 std::cout << "Hello" << std::endl;
- (gdb)
- std::ostream::operator<< (__pf=<optimized out>, this=<optimized out>)
- 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
- 108 operator<<(__ostream_type& (*__pf)(__ostream_type&))
- (gdb)
- 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> >&) ()
- 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
- 74 static ios_base::Init __ioinit;
- (gdb)
- 0x76b59130 in msvcrt!memcmp () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!memcmp,
- which has no line number information.
- 0x76b48fb0 in putc () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function putc,
- which has no line number information.
- 0x76b2cc0c in strerror_s () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function strerror_s,
- which has no line number information.
- 0x76b48fbc in putc () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function putc,
- which has no line number information.
- 0x76b389a0 in unlock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function unlock,
- which has no line number information.
- 0x76b36e30 in msvcrt!_lock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!_lock,
- which has no line number information.
- 0x76b389ca in unlock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function unlock,
- which has no line number information.
- 0x76b48fee in putc () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function putc,
- which has no line number information.
- 0x76b43740 in msvcrt!_flsbuf () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!_flsbuf,
- which has no line number information.
- 0x76b490a9 in putc () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function putc,
- which has no line number information.
- 0x76b38a13 in unlock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function unlock,
- which has no line number information.
- 0x76f085d0 in ntdll!RtlLeaveCriticalSection () from C:\WINDOWS\SYSTEM32\ntdll.dll
- (gdb)
- Single stepping until exit from function ntdll!RtlLeaveCriticalSection,
- which has no line number information.
- 0x76b36ff5 in unlock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function unlock,
- which has no line number information.
- 0x76b490da in putc () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function putc,
- which has no line number information.
- 0x76b43950 in msvcrt!fflush () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!fflush,
- which has no line number information.
- 0x76b2cc0c in strerror_s () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function strerror_s,
- which has no line number information.
- 0x76b4395c in msvcrt!fflush () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!fflush,
- which has no line number information.
- 0x76b389a0 in unlock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function unlock,
- which has no line number information.
- 0x76b36e30 in msvcrt!_lock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!_lock,
- which has no line number information.
- 0x76b389ca in unlock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function unlock,
- which has no line number information.
- 0x76b43972 in msvcrt!fflush () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!fflush,
- which has no line number information.
- 0x76b43883 in msvcrt!_flsbuf () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!_flsbuf,
- which has no line number information.
- 0x76b4397d in msvcrt!fflush () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!fflush,
- which has no line number information.
- 0x76b38a13 in unlock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function unlock,
- which has no line number information.
- 0x76f085d0 in ntdll!RtlLeaveCriticalSection () from C:\WINDOWS\SYSTEM32\ntdll.dll
- (gdb)
- Single stepping until exit from function ntdll!RtlLeaveCriticalSection,
- which has no line number information.
- 0x76b36ff5 in unlock () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function unlock,
- which has no line number information.
- 0x76b439ad in msvcrt!fflush () from C:\WINDOWS\System32\msvcrt.dll
- (gdb)
- Single stepping until exit from function msvcrt!fflush,
- which has no line number information.
- main (argc=1, argv=0xd82cf0) at test.cpp:5
- 5 return 0;
- (gdb)
- 0x0040138b in __tmainCRTStartup ()
- (gdb)
- Single stepping until exit from function __tmainCRTStartup,
- which has no line number information.
- [Thread 10152.0x6df0 exited with code 0]
- [Thread 10152.0x33d4 exited with code 0]
- [Inferior 1 (process 10152) exited normally]
- (gdb)
- The program is not being run.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement