Apply fix from zoo:
authorFred Fish <fnf@specifix.com>
Wed, 25 Nov 1992 15:53:01 +0000 (15:53 +0000)
committerFred Fish <fnf@specifix.com>
Wed, 25 Nov 1992 15:53:01 +0000 (15:53 +0000)
* munch:  Backslash escape vertical bar characters inside
grep patterns since they have special meaning for some greps.

gdb/ChangeLog
gdb/munch

index e3c58f7c0c2e9fff5266783acf48025107262fd7..37e4198408cb8479b6d2861100d6cacb5def142d 100644 (file)
@@ -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.
index 829dc4693b7dc6e69450e7a769ec706f97115571..a3d7ad0e4fb607ba7c74b2d2ed887c719d8f656d 100755 (executable)
--- 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