Add function print_decimal to handle display of long long decimal
authorAndrew Cagney <cagney@redhat.com>
Mon, 24 Nov 1997 12:49:38 +0000 (12:49 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 24 Nov 1997 12:49:38 +0000 (12:49 +0000)
values on hosts with long-long but no "%ll".

gdb/.Sanitize
gdb/ChangeLog

index fe5edc0..52000d3 100644 (file)
@@ -627,6 +627,33 @@ else
        done
 fi
 
+if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping vr5400 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"vr5400\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
+                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+                               if [ -n "${verbose}" ] ; then
+                                       echo Caching $i in .Recover...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
        for i in * ; do
                if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
index de43a91..0314ce5 100644 (file)
@@ -1,5 +1,8 @@
 Mon Nov 24 08:59:28 1997  Andrew Cagney  <cagney@b1.cygnus.com>
 
+       * valprint.c (print_longest): When CC has long long but printf
+       doesn't, print decimal value as three parts.
+
        * config/i386/tm-fbsd.h: New file.
        * config/i386/fbsd.mt (TM_FILE): Change to tm-fbsd.h.