m88k native support
[deliverable/binutils-gdb.git] / gdb / createtags
index aa2797f52489d2a667dc8cbd31c7c7df1ab8910f..6f02ff23f706c752194009e1902c0dd0a1ef62f9 100755 (executable)
@@ -10,26 +10,11 @@ if test "`find main.c -type l -print `" != "" ; then
 else
        prefix=""
 fi
+
+# Replace .o at end of filename with .c
 for i in $@ ; do
-       filelist="$filelist $prefix$i"
+       file=`echo $i-x- | sed -e 's/\.o-x-/\.c-x-/' | sed -e 's/-x-//'`
+       filelist="$filelist $prefix$file"
 done
-#
-# Here we simply make sure that the actual machine dependent files being used
-# (if any) are ahead of all of the other machine dependent files in the list.
-# This means that M-. will (almost) always give you exactly the routine 
-# you want. 
-#
-if test -f param.h ; then
-       if `grep '^#define[     ]*COFF_FORMAT' param.h > /dev/null 2>&1`; then
-               frmatfile=${prefix}coffread.c
-       else
-               frmatfile=${prefix}dbxread.c
-       fi
-       hfile=$prefix`ls -l param.h | awk '{print $11}'`
-       dfile=$prefix`ls -l dep.c | awk '{print $11}'`
-       ofile=$prefix`ls -l opcode.h | awk '{print $11}'`
-       pfile=$prefix`ls -l pinsn.c | awk '{print $11}'`
-       etags $hfile $dfile $ofile $pfile $frmatfile $filelist
-else
-       etags $filelist
-fi
+
+etags $filelist
This page took 0.024659 seconds and 4 git commands to generate.