diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2014-11-24 18:05:04 +0100 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2014-11-24 18:05:04 +0100 |
commit | cac9b138f75c94c1256d054cbafdf208b8963ce1 (patch) | |
tree | db6296e1b4b0f00094f7207a7769d777659d8f7c | |
parent | 520c7b56ac91e91120c59d7a85466ec9394277cf (diff) | |
download | gdb-cac9b138f75c94c1256d054cbafdf208b8963ce1.zip gdb-cac9b138f75c94c1256d054cbafdf208b8963ce1.tar.gz gdb-cac9b138f75c94c1256d054cbafdf208b8963ce1.tar.bz2 |
Reindent code (resolve_dynamic_type_internal).
gdb/ChangeLog
2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbtypes.c | 40 |
2 files changed, 24 insertions, 20 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 506dc61..7726bd2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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> diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 976d56f..61d259d 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); |