Linux kernel & device driver programming

Cross-Referenced Linux and Device Driver Code

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]
Version: [ 2.6.11.8 ] [ 2.6.25 ] [ 2.6.25.8 ] [ 2.6.31.13 ] Architecture: [ i386 ]
  1 #!/bin/bash
  2 #
  3 # $Id: gdbline,v 1.1 2004/08/02 16:27:55 corbet Exp $
  4 #
  5 # gdbline module image
  6 #
  7 # Outputs an add-symbol-file line suitable for pasting into gdb to examine
  8 # a loaded module.
  9 #
 10 cd /sys/module/$1/sections
 11 echo -n add-symbol-file $2 `/bin/cat .text`
 12 
 13 for section in .[a-z]* *; do
 14     if [ $section != ".text" ]; then
 15             echo  " \\"
 16             echo -n "       -s" $section `/bin/cat $section`
 17     fi
 18 done
 19 echo
  This page was automatically generated by the LXR engine.