diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-06-25 19:29:45 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-06-25 19:29:45 +0000 |
commit | 7e71985c9e0da1d2453ee40dd408e23a97fc25b8 (patch) | |
tree | 3b8810eb8f2ce9003ecc471b7b34997e45a051a1 | |
parent | a38b1233c25f478e32dc6ad1b189e775aa529430 (diff) | |
download | gdb-7e71985c9e0da1d2453ee40dd408e23a97fc25b8.zip gdb-7e71985c9e0da1d2453ee40dd408e23a97fc25b8.tar.gz gdb-7e71985c9e0da1d2453ee40dd408e23a97fc25b8.tar.bz2 |
* c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN.
* stabsread.c: Type -16 is 4 bytes.
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/c-valprint.c | 4 | ||||
-rw-r--r-- | gdb/stabsread.c | 3 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0cd12a0..c9a553b 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 2344ec7..dca35f3 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 c09525a..4f86215 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); |