* stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
authorJim Kingdon <jkingdon@engr.sgi.com>
Mon, 3 Jan 1994 21:49:43 +0000 (21:49 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Mon, 3 Jan 1994 21:49:43 +0000 (21:49 +0000)
gdb/ChangeLog
gdb/stabsread.c

index d299b42a10a99024707558b39fa54462e47f592d..ea7f3842a79cfeae2bcd09ff63eab44821b939b2 100644 (file)
@@ -1,5 +1,7 @@
 Mon Jan  3 11:57:29 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
+       * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
+
        * breakpoint.c (frame_in_dummy): Check PC as well as frame.
 
 Mon Jan  3 02:47:03 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
index 75d53a92de96a0fbeacd4402b506a11d9a2439fa..85d54a9563410ac50d6fdf338c31d4dd56930998 100644 (file)
@@ -2937,7 +2937,7 @@ read_enum_type (pp, type, objfile)
 
   /* Now fill in the fields of the type-structure.  */
 
-  TYPE_LENGTH (type) = sizeof (int);
+  TYPE_LENGTH (type) = TARGET_INT_BIT / HOST_CHAR_BIT;
   TYPE_CODE (type) = TYPE_CODE_ENUM;
   TYPE_FLAGS (type) &= ~TYPE_FLAG_STUB;
   TYPE_NFIELDS (type) = nsyms;
This page took 0.028628 seconds and 4 git commands to generate.