Difference between revisions of "How to Debug binary"
(Created page with "== Installing gbd== apt install gdb == Debugging == gdb --args {binary} == gbd Commands == gdb = general debugging of binary bt = backtrace") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | gdb is a GNU debugger that is used to debug binary files. | ||
+ | |||
== Installing gbd== | == Installing gbd== | ||
apt install gdb | apt install gdb | ||
Line 8: | Line 10: | ||
gdb = general debugging of binary | gdb = general debugging of binary | ||
bt = backtrace | bt = backtrace | ||
+ | |||
+ | Valggrind is a memory leak analizer that checks binary files for memory issues in debug mode. | ||
+ | |||
+ | == Installing Valgrind == | ||
+ | apt install valgrind | ||
+ | |||
+ | == Valgrind Commands == | ||
+ | valgrind {binary} |
Latest revision as of 04:03, 5 May 2025
gdb is a GNU debugger that is used to debug binary files.
Installing gbd
apt install gdb
Debugging
gdb --args {binary}
gbd Commands
gdb = general debugging of binary bt = backtrace
Valggrind is a memory leak analizer that checks binary files for memory issues in debug mode.
Installing Valgrind
apt install valgrind
Valgrind Commands
valgrind {binary}