summaryrefslogtreecommitdiffstats
path: root/gdb/c-valprint.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-06-25 19:29:45 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-06-25 19:29:45 +0000
commit7e71985c9e0da1d2453ee40dd408e23a97fc25b8 (patch)
tree3b8810eb8f2ce9003ecc471b7b34997e45a051a1 /gdb/c-valprint.c
parenta38b1233c25f478e32dc6ad1b189e775aa529430 (diff)
downloadppe42-binutils-7e71985c9e0da1d2453ee40dd408e23a97fc25b8.tar.gz
ppe42-binutils-7e71985c9e0da1d2453ee40dd408e23a97fc25b8.zip
* c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN.
* stabsread.c: Type -16 is 4 bytes.
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r--gdb/c-valprint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index 2344ec7dde..dca35f3dd1 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -319,6 +319,10 @@ c_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
print_address_demangle (address, stream, demangle);
break;
+ case TYPE_CODE_BOOL:
+ /* Do something at least vaguely reasonable, for example if the
+ language is set wrong. */
+
case TYPE_CODE_INT:
format = format ? format : output_format;
if (format)
OpenPOWER on IntegriCloud