gdb-3.5
[deliverable/binutils-gdb.git] / gdb / munch
CommitLineData
e91b87a3 1#! /bin/sh
2
3# create an initialization procedure from a list of .o files
e91b87a3 4
5echo '/* Do not modify this file. It is created automatically by "munch". */'
4187119d 6echo 'void initialize_all_files () {'
e91b87a3 7
4187119d 8if test "$1" = "-DSYSV" ; then
9 shift;
10 nm $* | egrep '^(.*[^a-zA-Z_]_|_)initialize_' | \
11 sed -e 's/^.*\(_initialize_[a-zA-Z0-9_]*\)[^a-zA-Z0-9_].*$/ \1 ();/'
12else
13 nm -p $* | egrep 'T *__initialize_' | \
14 sed -e 's/^.*T *_*\(.*\)/ _\1 ();/'
15fi
e91b87a3 16
17echo '}'
This page took 0.023419 seconds and 4 git commands to generate.