aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-11-24 12:49:38 +0000
committerAndrew Cagney <cagney@redhat.com>1997-11-24 12:49:38 +0000
commit4251ff49e8079c79169f57673de630ee6c3f6731 (patch)
tree728e5317ef1148e294e0fc37e7d64b25f6f18f20 /gdb
parentf7b8c9ce46cd96bb86beddc9e33663a556702c61 (diff)
downloadgdb-4251ff49e8079c79169f57673de630ee6c3f6731.zip
gdb-4251ff49e8079c79169f57673de630ee6c3f6731.tar.gz
gdb-4251ff49e8079c79169f57673de630ee6c3f6731.tar.bz2
Add function print_decimal to handle display of long long decimal
values on hosts with long-long but no "%ll".
Diffstat (limited to 'gdb')
-rw-r--r--gdb/.Sanitize27
-rw-r--r--gdb/ChangeLog3
2 files changed, 30 insertions, 0 deletions
diff --git a/gdb/.Sanitize b/gdb/.Sanitize
index fe5edc0..52000d3 100644
--- a/gdb/.Sanitize
+++ b/gdb/.Sanitize
@@ -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
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index de43a91..0314ce5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.