Difference between revisions of "How to Debug binary"

From HyperSecurity Wiki
Jump to: navigation, search
(Created page with "== Installing gbd== apt install gdb == Debugging == gdb --args {binary} == gbd Commands == gdb = general debugging of binary bt = backtrace")
 
Line 8: Line 8:
 
  gdb = general debugging of binary
 
  gdb = general debugging of binary
 
  bt = backtrace
 
  bt = backtrace
 +
 +
== Installing Valgrind ==
 +
apt install valgrind
 +
 +
== Valgrind Commands ==
 +
valgrind  {binary}

Revision as of 03:43, 5 May 2025

Installing gbd

apt install gdb

Debugging

gdb --args {binary}

gbd Commands

gdb = general debugging of binary
bt = backtrace

Installing Valgrind

apt install valgrind

Valgrind Commands

valgrind  {binary}