This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: shrink main_type
Tom> It turns out I missed a couple other problems. My apologies -- I
Tom> messed up.
Sigh. One more problem.
While looking at the --enable-targets=all failure I found a rename I
missed in s390-tdep.c.
Fix appended.
Hopefully there aren't any more. I'm hardly confident in that at all
right now... anyway, if you find something, let me know and I will fix
it ASAP.
Tom
ChangeLog:
2008-08-24 Tom Tromey <tromey@redhat.com>
* s390-tdep.c (s390_address_class_type_flags): Use
TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
(s390_address_class_type_flags_to_name): Likewise.
(s390_address_class_name_to_type_flags): Likewise.
Index: s390-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/s390-tdep.c,v
retrieving revision 1.175
diff -u -r1.175 s390-tdep.c
--- s390-tdep.c 16 May 2008 00:27:23 -0000 1.175
+++ s390-tdep.c 24 Aug 2008 20:31:22 -0000
@@ -2278,7 +2278,7 @@
s390_address_class_type_flags (int byte_size, int dwarf2_addr_class)
{
if (byte_size == 4)
- return TYPE_FLAG_ADDRESS_CLASS_1;
+ return TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1;
else
return 0;
}
@@ -2286,7 +2286,7 @@
static const char *
s390_address_class_type_flags_to_name (struct gdbarch *gdbarch, int type_flags)
{
- if (type_flags & TYPE_FLAG_ADDRESS_CLASS_1)
+ if (type_flags & TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1)
return "mode32";
else
return NULL;
@@ -2298,7 +2298,7 @@
{
if (strcmp (name, "mode32") == 0)
{
- *type_flags_ptr = TYPE_FLAG_ADDRESS_CLASS_1;
+ *type_flags_ptr = TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1;
return 1;
}
else