File: DEBUG

package info (click to toggle)
torsocks 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,264 kB
  • ctags: 863
  • sloc: sh: 11,815; ansic: 6,310; makefile: 463
file content (8 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (9)
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