SHARE
TWEET

Untitled

a guest May 19th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. SYMLIST="$1"
  4. SHAREDLIB="$2"
  5.  
  6. GDBSCRIPT="gdb_syms.$$"
  7.  
  8. rm -f $GDBSCRIPT
  9.  
  10. cat <<EOF > $GDBSCRIPT
  11. set height 0
  12. EOF
  13.  
  14. cat $SYMLIST | sort | while read s; do
  15.     echo p $s >> $GDBSCRIPT
  16. done
  17. gdb -batch -x $GDBSCRIPT $SHAREDLIB < /dev/null 2>/dev/null |
  18.  cut -d'{' -f2 |
  19.  cut -d'}' -f1
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top