aboutsummaryrefslogtreecommitdiff
path: root/gdb/munch
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-11-25 15:53:01 +0000
committerFred Fish <fnf@specifix.com>1992-11-25 15:53:01 +0000
commitb9b6dbc2ea36caf4e95cf8a43ed394f8726242d4 (patch)
tree28fdeeaf6b6f70c337678e5136818cdfa254e109 /gdb/munch
parentd1065385c1e546fda6cabb8030207b5e108b6e8f (diff)
downloadgdb-b9b6dbc2ea36caf4e95cf8a43ed394f8726242d4.zip
gdb-b9b6dbc2ea36caf4e95cf8a43ed394f8726242d4.tar.gz
gdb-b9b6dbc2ea36caf4e95cf8a43ed394f8726242d4.tar.bz2
Apply fix from zoo:
* munch: Backslash escape vertical bar characters inside grep patterns since they have special meaning for some greps.
Diffstat (limited to 'gdb/munch')
-rwxr-xr-xgdb/munch2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/munch b/gdb/munch
index 829dc46..a3d7ad0 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