X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=gdb%2Ftarget-descriptions.c;h=bd33091ba9e4bcbad5efafe4fb6e211ca379bfe9;hb=00b56dbe7016bc33f882525a47faab943fdeda9a;hp=20604bb4b96a81d078f7a4fd7a453332ec685081;hpb=b5ffee3181d157a4d964f62344ac827142e37bde;p=thirdparty%2Fbinutils-gdb.git diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c index 20604bb4b96..bd33091ba9e 100644 --- a/gdb/target-descriptions.c +++ b/gdb/target-descriptions.c @@ -1,6 +1,6 @@ /* Target description support for GDB. - Copyright (C) 2006-2018 Free Software Foundation, Inc. + Copyright (C) 2006-2019 Free Software Foundation, Inc. Contributed by CodeSourcery. @@ -26,7 +26,7 @@ #include "reggroups.h" #include "target.h" #include "target-descriptions.h" -#include "vec.h" +#include "common/vec.h" #include "xml-support.h" #include "xml-tdesc.h" #include "osabi.h" @@ -119,6 +119,11 @@ make_gdb_type (struct gdbarch *gdbarch, struct tdesc_type *ttype) switch (e->kind) { + case TDESC_TYPE_IEEE_HALF: + m_type = arch_float_type (m_gdbarch, -1, "builtin_type_ieee_half", + floatformats_ieee_half); + return; + case TDESC_TYPE_IEEE_SINGLE: m_type = arch_float_type (m_gdbarch, -1, "builtin_type_ieee_single", floatformats_ieee_single); @@ -1138,20 +1143,12 @@ allocate_target_description (void) return new target_desc (); } -static void -free_target_description (void *arg) +void +target_desc_deleter::operator() (struct target_desc *target_desc) const { - struct target_desc *target_desc = (struct target_desc *) arg; - delete target_desc; } -struct cleanup * -make_cleanup_free_target_description (struct target_desc *target_desc) -{ - return make_cleanup (free_target_description, target_desc); -} - void tdesc_add_compatible (struct target_desc *target_desc, const struct bfd_arch_info *compatible)