Skip to content

Instantly share code, notes, and snippets.

@shi-yan
Last active October 25, 2016 19:23
Show Gist options
  • Save shi-yan/cb36f7b070cff0c811f45fb6acdf38b5 to your computer and use it in GitHub Desktop.
Save shi-yan/cb36f7b070cff0c811f45fb6acdf38b5 to your computer and use it in GitHub Desktop.
Useful tricks
check symbol:
http://stackoverflow.com/questions/34732/how-do-i-list-the-symbols-in-a-so-file
nm -g yourLib.so
nm -gC yourLib.so
debug dlopen
http://stackoverflow.com/questions/34415168/dlopen-returns-with-file-not-found-although-file-exist
export LD_DEBUG=all
let gdb break into a program with ctrl-c
handle SIGINT stop
http://stackoverflow.com/questions/5857300/gdb-ctrlc-doesnt-interrupt-process-as-it-usually-does-but-rather-terminates-t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment