From: Jan Kratochvil Date: Mon, 24 Nov 2014 17:05:04 +0000 (+0100) Subject: Reindent code (resolve_dynamic_type_internal). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cac9b138f75c94c1256d054cbafdf208b8963ce1;p=binutils-gdb.git Reindent code (resolve_dynamic_type_internal). gdb/ChangeLog 2014-11-24 Jan Kratochvil * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 506dc613175..7726bd2184c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-11-24 Jan Kratochvil + + * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code. + 2014-11-24 Samuel Thibault Pushed by Joel Brobecker diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 976d56f614a..61d259d81fb 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -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);