aboutsummaryrefslogtreecommitdiff
path: root/gdb/munch
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1992-04-03 20:25:57 +0000
committerPer Bothner <per@bothner.com>1992-04-03 20:25:57 +0000
commit556f3d9029f10733007a87814d7a46ea0c480be2 (patch)
treed49cfb64b711f5e0bcee96b33870230c5a074101 /gdb/munch
parent677ff947296b08717519768157973e57ba31b3cb (diff)
downloadgdb-556f3d9029f10733007a87814d7a46ea0c480be2.zip
gdb-556f3d9029f10733007a87814d7a46ea0c480be2.tar.gz
gdb-556f3d9029f10733007a87814d7a46ea0c480be2.tar.bz2
* munch: Must pre-pend "_" to "initialize" for SYSV style nm.
* tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h: Merge in more patches for rs6000 from Metin Ozisik. * utils.c: Fix typo in comment.
Diffstat (limited to 'gdb/munch')
-rwxr-xr-xgdb/munch4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/munch b/gdb/munch
index 740c670..75c6521 100755
--- a/gdb/munch
+++ b/gdb/munch
@@ -23,8 +23,8 @@ if test "`$MUNCH_NM main.o | egrep main | egrep FUNC | egrep GLOB`" != "" ; then
elif test "`$MUNCH_NM main.o | egrep '[TD] _?main$'`" = "" ; then
# System V style nm
shift;
- $MUNCH_NM $* | egrep '^(.*[^a-zA-Z_]_|_)_?initialize_.*' | egrep '\.text'|\
- sed -e 's/^.*\(_initialize_[a-zA-Z0-9_]*\)/ {extern void \1 (); \1 ();}/'
+ $MUNCH_NM $* | egrep '_initialize_.*' | egrep '\.text'|\
+ sed -e 's/^.*\(_initialize_[a-zA-Z0-9_]*\).*/ {extern void \1 (); \1 ();}/'
else
# BSD style nm
# We now accept either text or data symbols, since the RT/PC uses data.