summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-01-11 16:03:08 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-01-11 16:03:08 +0000
commit5f61c20e05b3752fb9ab5b2aeea6adc8bf515db5 (patch)
tree27f817bf92f68a4243825ce2f0ba9b00674d9f6d
parent53b715628b0f5957947f03562fa9b7a5f2c85ca4 (diff)
downloadbinutils-5f61c20e05b3752fb9ab5b2aeea6adc8bf515db5.tar.gz
binutils-5f61c20e05b3752fb9ab5b2aeea6adc8bf515db5.tar.bz2
binutils-5f61c20e05b3752fb9ab5b2aeea6adc8bf515db5.zip
* gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
coding style.
-rw-r--r--gdb/ChangeLog13
-rw-r--r--gdb/gdbtypes.c38
2 files changed, 30 insertions, 21 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 78c4fa1461b..346f67df8c8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,4 +1,9 @@
-2009-10-11 Joel Brobecker <brobecker@adacore.com>
+2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
+ coding style.
+
+2009-01-11 Joel Brobecker <brobecker@adacore.com>
* target.c (target_xfer_partial): Use host_address_to_string to
print the address of readbuf and writebuf. Cast the address of
@@ -7,7 +12,7 @@
Cast the address of elements inside the myaddr buffer into
intptr_t.
-2009-10-11 Joel Brobecker <brobecker@adacore.com>
+2009-01-11 Joel Brobecker <brobecker@adacore.com>
* amd64-windows-nat.c, amd64-windows-tdep.c: New files.
* config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
@@ -15,7 +20,7 @@
* config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
and amd64-windows-tdep.c.
-2009-10-11 Joel Brobecker <brobecker@adacore.com>
+2009-01-11 Joel Brobecker <brobecker@adacore.com>
* win32-tdep.h, win32-tdep.c: New files.
* i386-cygwin-tdep.h: Delete.
@@ -26,7 +31,7 @@
* configure.tgt: Add win32-tdep.o to the list of target object
files for i386-cygwin and i386-mingw targets.
-2009-10-11 Joel Brobecker <brobecker@adacore.com>
+2009-01-11 Joel Brobecker <brobecker@adacore.com>
* win32-nat.h: New file.
* win32-nat.c (mappings): Initialize to NULL.
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 790442ca97a..dfa06aeced8 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -478,11 +478,13 @@ make_qualified_type (struct type *type, int new_flags,
struct type *ntype;
ntype = type;
- do {
- if (TYPE_INSTANCE_FLAGS (ntype) == new_flags)
- return ntype;
- ntype = TYPE_CHAIN (ntype);
- } while (ntype != type);
+ do
+ {
+ if (TYPE_INSTANCE_FLAGS (ntype) == new_flags)
+ return ntype;
+ ntype = TYPE_CHAIN (ntype);
+ }
+ while (ntype != type);
/* Create a new type instance. */
if (storage == NULL)
@@ -620,18 +622,20 @@ replace_type (struct type *ntype, struct type *type)
/* The type length is not a part of the main type. Update it for
each type on the variant chain. */
chain = ntype;
- do {
- /* Assert that this element of the chain has no address-class bits
- set in its flags. Such type variants might have type lengths
- which are supposed to be different from the non-address-class
- variants. This assertion shouldn't ever be triggered because
- symbol readers which do construct address-class variants don't
- call replace_type(). */
- gdb_assert (TYPE_ADDRESS_CLASS_ALL (chain) == 0);
-
- TYPE_LENGTH (chain) = TYPE_LENGTH (type);
- chain = TYPE_CHAIN (chain);
- } while (ntype != chain);
+ do
+ {
+ /* Assert that this element of the chain has no address-class bits
+ set in its flags. Such type variants might have type lengths
+ which are supposed to be different from the non-address-class
+ variants. This assertion shouldn't ever be triggered because
+ symbol readers which do construct address-class variants don't
+ call replace_type(). */
+ gdb_assert (TYPE_ADDRESS_CLASS_ALL (chain) == 0);
+
+ TYPE_LENGTH (chain) = TYPE_LENGTH (type);
+ chain = TYPE_CHAIN (chain);
+ }
+ while (ntype != chain);
/* Assert that the two types have equivalent instance qualifiers.
This should be true for at least all of our debug readers. */