Reindent code (resolve_dynamic_type_internal).
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 24 Nov 2014 17:05:04 +0000 (18:05 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 24 Nov 2014 17:05:04 +0000 (18:05 +0100)
gdb/ChangeLog
2014-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>

* gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.

gdb/ChangeLog
gdb/gdbtypes.c

index 506dc613175c5c4478369ef2c8d048e45a83f60b..7726bd2184c67aeaf5368a2a170e3454a5d99310 100644 (file)
@@ -1,3 +1,7 @@
+2014-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
+
 2014-11-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
 
        Pushed by Joel Brobecker  <brobecker@adacore.com>
index 976d56f614a9d8ce812864210cee3c42083c9954..61d259d81fbd077fa3bd32fdbf427aaa1428a5d3 100644 (file)
@@ -1877,31 +1877,31 @@ resolve_dynamic_type_internal (struct type *type, CORE_ADDR addr,
 
   switch (TYPE_CODE (type))
     {
-      case TYPE_CODE_TYPEDEF:
+    case TYPE_CODE_TYPEDEF:
+      resolved_type = copy_type (type);
+      TYPE_TARGET_TYPE (resolved_type)
+       = resolve_dynamic_type_internal (TYPE_TARGET_TYPE (type), addr,
+                                        top_level);
+      break;
+
+    case TYPE_CODE_REF:
+      {
+       CORE_ADDR target_addr = read_memory_typed_address (addr, type);
+
        resolved_type = copy_type (type);
        TYPE_TARGET_TYPE (resolved_type)
-         = resolve_dynamic_type_internal (TYPE_TARGET_TYPE (type), addr,
-                                          top_level);
+         = resolve_dynamic_type_internal (TYPE_TARGET_TYPE (type),
+                                          target_addr, top_level);
        break;
+      }
 
-      case TYPE_CODE_REF:
-       {
-         CORE_ADDR target_addr = read_memory_typed_address (addr, type);
-
-         resolved_type = copy_type (type);
-         TYPE_TARGET_TYPE (resolved_type)
-           = resolve_dynamic_type_internal (TYPE_TARGET_TYPE (type),
-                                            target_addr, top_level);
-         break;
-       }
-
-      case TYPE_CODE_ARRAY:
-       resolved_type = resolve_dynamic_array (type, addr);
-       break;
+    case TYPE_CODE_ARRAY:
+      resolved_type = resolve_dynamic_array (type, addr);
+      break;
 
-      case TYPE_CODE_RANGE:
-       resolved_type = resolve_dynamic_range (type, addr);
-       break;
+    case TYPE_CODE_RANGE:
+      resolved_type = resolve_dynamic_range (type, addr);
+      break;
 
     case TYPE_CODE_UNION:
       resolved_type = resolve_dynamic_union (type, addr);