aboutsummaryrefslogtreecommitdiff
path: root/gdb/munch
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1991-08-31 00:43:36 +0000
committerStu Grossman <grossman@cygnus>1991-08-31 00:43:36 +0000
commitfaaaea3c2a0a207ab88f0995a5fee36e42b91084 (patch)
treef6545373f1ec9a1f57fc09893c0ae6effa5ef643 /gdb/munch
parent625453dcfda0c1dca75c876197b74a5f8b978cc0 (diff)
downloadgdb-faaaea3c2a0a207ab88f0995a5fee36e42b91084.zip
gdb-faaaea3c2a0a207ab88f0995a5fee36e42b91084.tar.gz
gdb-faaaea3c2a0a207ab88f0995a5fee36e42b91084.tar.bz2
Merge in irix support.
Diffstat (limited to 'gdb/munch')
-rwxr-xr-xgdb/munch8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/munch b/gdb/munch
index 8b59ed0..92929ea 100755
--- a/gdb/munch
+++ b/gdb/munch
@@ -5,8 +5,14 @@
echo '/* Do not modify this file. It is created automatically by "munch". */'
echo 'void initialize_all_files () {'
+NMOPT=""
+case $1 in
+-*) NMOPT=$1; shift ;;
+esac
+
# make it easy to use a different nm, e.g. for cross-developing
-MUNCH_NM=${MUNCH_NM-nm}
+
+MUNCH_NM="nm $NMOPT"
if test "`$MUNCH_NM main.o | egrep 'T _?main$'`" = "" ; then
# System V style nm
shift;