From: Fred Fish Date: Wed, 25 Nov 1992 15:53:01 +0000 (+0000) Subject: Apply fix from zoo: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9b6dbc2ea36caf4e95cf8a43ed394f8726242d4;p=binutils-gdb.git Apply fix from zoo: * munch: Backslash escape vertical bar characters inside grep patterns since they have special meaning for some greps. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e3c58f7c0c2..37e4198408c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ Wed Nov 25 07:17:13 1992 Fred Fish (fnf@cygnus.com) + * munch: Backslash escape vertical bar characters inside + grep patterns since they have special meaning for some greps. * parse.c (write_exp_string): Complete rewrite to store string contants as a leading explicit length, followed by the string data, followed by a trailing explicit length. diff --git a/gdb/munch b/gdb/munch index 829dc4693b7..a3d7ad0e4fb 100755 --- a/gdb/munch +++ b/gdb/munch @@ -18,7 +18,7 @@ esac MUNCH_NM="${MUNCH_NM-nm} $NMOPT" if test "`$MUNCH_NM main.o | egrep main | egrep FUNC | egrep GLOB`" != "" ; then # System V Release 4 style nm - $MUNCH_NM $* | egrep '|__?initialize_' | egrep FUNC | \ + $MUNCH_NM $* | egrep '\|__?initialize_' | egrep FUNC | \ sed -e \ 's/^.*\(_initialize_[a-zA-Z0-9_]*\).*$/ {extern void \1 (); \1 ();}/'\ | sort -u