File: DEBUG

package info (click to toggle)
torsocks 2.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 916 kB
  • sloc: ansic: 7,437; sh: 1,038; makefile: 105
file content (8 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
You can set breakpoints in libtorsocks using the following technique. Say you
want to debug torsocks when it's wrapping a program called gethostbyaddr, that
calls gethostbyaddr():

gdb ./gethostbyaddr
set environment LD_PRELOAD /path/to/libtorsocks.so
b our_gethostbyaddr
run