From: Jim Kingdon Date: Fri, 25 Jun 1993 19:29:45 +0000 (+0000) Subject: * c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e71985c9e0da1d2453ee40dd408e23a97fc25b8;p=binutils-gdb.git * c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN. * stabsread.c: Type -16 is 4 bytes. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0cd12a09488..c9a553b9015 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + * c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN. + * stabsread.c: Type -16 is 4 bytes. + * remote-udi.c: Improve docstring. Fri Jun 25 11:16:31 1993 Fred Fish (fnf@cygnus.com) diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index 2344ec7dde0..dca35f3dd1d 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) diff --git a/gdb/stabsread.c b/gdb/stabsread.c index c09525ac64f..4f862156d13 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -1687,8 +1687,7 @@ rs6000_builtin_type (typenum) rettype = init_type (TYPE_CODE_INT, 4, 0, "integer", NULL); break; case 16: - /* What is the proper size of this type? */ - rettype = init_type (TYPE_CODE_BOOL, 1, 0, "boolean", NULL); + rettype = init_type (TYPE_CODE_BOOL, 4, 0, "boolean", NULL); break; case 17: rettype = init_type (TYPE_CODE_FLT, 4, 0, "short real", NULL);