gdb-3.1
[deliverable/binutils-gdb.git] / gdb / munch
1 #! /bin/sh
2
3 # create an initialization procedure from a list of .o files
4 # Look in object files, find symbols including the string _initialize_,
5 # and call each one as a function.
6
7 echo '/* Do not modify this file. It is created automatically by "munch". */'
8 echo 'void init_all_files () {'
9
10 nm $* | egrep '_initialize_' | \
11 sed -e 's/^.*\(initialize_[a-zA-Z_0-9]*\).*$/ _\1 ();/' | \
12 sort -u
13
14 echo '}'
This page took 0.030409 seconds and 5 git commands to generate.