cs240
2011-07-18 15:05:21 UTC
gdb is a c++ debugger, to use it compile your code using g++ with the -g
flag, then call gdb on the compiled object
EG:
g++ -g *.cpp
gdb a.out
http://www.student.cs.uwaterloo.ca/~cs343/documents/C++GDBTutorial.pdf
valgrind is a programming tool for memory debugging, memory leak
detection, and profiling.
If you have a segmentation fault, run valgrind on your program to check
for any uninitialized values.
EG:
valgrind a.out
flag, then call gdb on the compiled object
EG:
g++ -g *.cpp
gdb a.out
http://www.student.cs.uwaterloo.ca/~cs343/documents/C++GDBTutorial.pdf
valgrind is a programming tool for memory debugging, memory leak
detection, and profiling.
If you have a segmentation fault, run valgrind on your program to check
for any uninitialized values.
EG:
valgrind a.out
--
Patrick Lee
CS240 Tutor
Patrick Lee
CS240 Tutor