aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/.Sanitize14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/config/.Sanitize b/gdb/config/.Sanitize
index 83a1570..3ecaaf1 100644
--- a/gdb/config/.Sanitize
+++ b/gdb/config/.Sanitize
@@ -29,6 +29,20 @@ else
fi
fi
+carp_files="carp"
+
+if ( echo $* | grep keep\-carp > /dev/null ) ; then
+ keep_these_too="${carp_files} ${keep_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Keeping ${carp_files}
+ fi
+else
+ lose_these_too="${carp_files} ${lose_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Deleting ${carp_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