Created
February 11, 2018 15:12
-
-
Save JohnBobSmith/1ae226079c32e79fbf4db1dc69684eaa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sun Feb 11 jbs@dmb-gaming-laptop -> make clean | |
rm -f *.o debugging_tests | |
Sun Feb 11 jbs@dmb-gaming-laptop -> ls | |
main.cpp Makefile | |
Sun Feb 11 jbs@dmb-gaming-laptop -> make | |
g++ -c -o main.o main.cpp | |
g++ -o debugging_tests main.o -g -Wall | |
Sun Feb 11 jbs@dmb-gaming-laptop -> gdb debugging_tests | |
GNU gdb (GDB) 8.1 | |
Copyright (C) 2018 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-pc-linux-gnu". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>. | |
Find the GDB manual and other documentation resources online at: | |
<http://www.gnu.org/software/gdb/documentation/>. | |
For help, type "help". | |
Type "apropos word" to search for commands related to "word"... | |
Reading symbols from debugging_tests...(no debugging symbols found)...done. | |
(gdb) break main.cpp:5 | |
No symbol table is loaded. Use the "file" command. | |
Make breakpoint pending on future shared library load? (y or [n]) n | |
(gdb) quit | |
Sun Feb 11 jbs@dmb-gaming-laptop -> make clean | |
rm -f *.o debugging_tests | |
Sun Feb 11 jbs@dmb-gaming-laptop -> g++ main.cpp -g | |
Sun Feb 11 jbs@dmb-gaming-laptop -> ls | |
a.out main.cpp Makefile | |
Sun Feb 11 jbs@dmb-gaming-laptop -> gdb a.out | |
GNU gdb (GDB) 8.1 | |
Copyright (C) 2018 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-pc-linux-gnu". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>. | |
Find the GDB manual and other documentation resources online at: | |
<http://www.gnu.org/software/gdb/documentation/>. | |
For help, type "help". | |
Type "apropos word" to search for commands related to "word"... | |
Reading symbols from a.out...done. | |
(gdb) break main.cpp:5 | |
Breakpoint 1 at 0x822: file main.cpp, line 5. | |
(gdb) quit | |
Sun Feb 11 jbs@dmb-gaming-laptop -> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment