-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathgdb and Valgrind
More file actions
25 lines (10 loc) · 767 Bytes
/
gdb and Valgrind
File metadata and controls
25 lines (10 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
http://ubuntuforums.org/showthread.php?t=828018
Setting breakpoint in gdb when variable reaches a specific value:
http://stackoverflow.com/questions/7285529/setting-a-breakpoint-when-variable-reaches-specific-value
http://stackoverflow.com/questions/2520632/how-do-i-jump-to-a-breakpoint-within-gdb
WHEN TO USE free in C:
http://stackoverflow.com/questions/13590812/c-freeing-structs
Complete Command:
valgrind --tool=memcheck --leak-check=full --track-origins=yes --show-reachable=yes ./final --basic input-large.nikhil.bin sort-large.nikhil.bin > SORT-large.txt
valgrind --tool=memcheck --leak-check=full --track-origins=yes --show-reachable=yes ./assn_4 index.bin 4 < input-01.txt > output-01.txt
./assn_4 index.bin 4 < input-01.txt > output-01.txt