aboutsummaryrefslogtreecommitdiff
path: root/gdb/.Sanitize
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-08-19 16:48:51 +0000
committerJeff Law <law@redhat.com>1994-08-19 16:48:51 +0000
commit98c0e047bdd9407ada8b5ba18f89418bb6351614 (patch)
tree5c19e92f9d98edd62f0de6229f6cddcd51f80fb4 /gdb/.Sanitize
parent36d4f4d8516c9293d633ad65dadf8e2f52c7a7b1 (diff)
downloadgdb-98c0e047bdd9407ada8b5ba18f89418bb6351614.zip
gdb-98c0e047bdd9407ada8b5ba18f89418bb6351614.tar.gz
gdb-98c0e047bdd9407ada8b5ba18f89418bb6351614.tar.bz2
* Makefile.in (ALLDEPFILES): Add hpread.c.
(hpread.o): Add dependencies. * somread.c: Do not include "aout/aout64.h". SOM has nothing to do with a.out. (BYTES_IN_WORD): Delete. (som_symfile_read): Call hpread_build_psymtabs to build any minimal symbols based on the HP C native debug symbols. (som_symfile_finish): Call hpread_symfile_finish. (som_symfile_init): Call hpread_symfile_init. * config/pa/tm-hppa.h (HPREAD_ADJUST_STACK_ADDRESS): Define. * hppa-tdep.c (hpread_adjust_stack_address): New function. * config/pa/hppabsd.mh (NATDEPFILES): Add hpread.o * config/pa/hppahpux.mh (NATDEPFILES): Likewise. * hpread.c: New file.
Diffstat (limited to 'gdb/.Sanitize')
-rw-r--r--gdb/.Sanitize40
1 files changed, 40 insertions, 0 deletions
diff --git a/gdb/.Sanitize b/gdb/.Sanitize
index 3f446a0..d5ff460 100644
--- a/gdb/.Sanitize
+++ b/gdb/.Sanitize
@@ -43,6 +43,20 @@ else
fi
fi
+hpread_files="hpread.c ChangeLog.hpread"
+
+if ( echo $* | grep keep\-hpread > /dev/null ) ; then
+ keep_these_too="${hpread_files} ${keep_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Keeping ${hpread_files}
+ fi
+else
+ lose_these_too="${hpread_files} ${lose_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Deleting ${hpread_files}
+ fi
+fi
+
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
@@ -372,4 +386,30 @@ else
done
fi
+echo Removing traces of \"hpread\"...
+
+# Don't try to clean directories here, as the 'mv' command will fail.
+# Also, grep fails on NFS mounted directories.
+if ( echo $* | grep keep\-hpread > /dev/null ) ; then
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then
+ echo Keeping hpread stuff in $i
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then
+ echo Removing traces of \"hpread\" out of $i...
+ cp $i new
+ sed '/start\-sanitize\-hpread/,/end-\sanitize\-hpread/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ echo Caching $i in .Recover...
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+fi
+
+
# End of file.