* coffread.c (process_coff_symbol): Change PCC argument correction
authorJohn Gilmore <gnu@cygnus>
Tue, 2 Mar 1993 03:39:37 +0000 (03:39 +0000)
committerJohn Gilmore <gnu@cygnus>
Tue, 2 Mar 1993 03:39:37 +0000 (03:39 +0000)
so that it only happens on big-endian targets; so that it only
happens if the short or char argument is aligned on an int
boundary; and so that it changes the location, rather than the
type, of the argument.  These changes tend to parallel similar
(old) changes in stabsread.c.

* coffread.c (coff_read_enum_type):  Use the specified size for
enums, don't assume that they are int-sized.

* c-valprint.c (c_val_print):  Don't assume enums are the same as
ints.

gdb/ChangeLog
gdb/c-valprint.c

index 7b06af3cdb9def7b456e1416da865904b08135c0..ebb3229e901b21368fcbac67be4e2b01297d2e19 100644 (file)
@@ -1,5 +1,18 @@
 Mon Mar  1 17:54:41 1993  John Gilmore  (gnu@cygnus.com)
 
+       * coffread.c (process_coff_symbol):  Change PCC argument correction
+       so that it only happens on big-endian targets; so that it only
+       happens if the short or char argument is aligned on an int
+       boundary; and so that it changes the location, rather than the
+       type, of the argument.  These changes tend to parallel similar
+       (old) changes in stabsread.c.
+
+       * coffread.c (coff_read_enum_type):  Use the specified size for
+       enums, don't assume that they are int-sized.
+
+       * c-valprint.c (c_val_print):  Don't assume enums are the same as
+       ints.
+
        * coredep.c:  Handle NO_PTRACE_H in coredep.c.  Fix by Michael
        Rendell, <michael@mercury.cs.mun.ca>.
 
index 1df82289035ddda6c769f9152cd5c9da51158893..1a3151b62713586e74e9414aee29901f63f627ba 100644 (file)
@@ -289,7 +289,7 @@ c_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
          break;
        }
       len = TYPE_NFIELDS (type);
-      val = unpack_long (builtin_type_int, valaddr);
+      val = unpack_long (type, valaddr);
       for (i = 0; i < len; i++)
        {
          QUIT;
This page took 0.048708 seconds and 4 git commands to generate.