diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-02 23:14:32 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-02 23:14:32 +0000 |
commit | 3494b66d76fd4258a2464fd43bd186558960baf5 (patch) | |
tree | 117b36d5394d650f5e3bedd9bd1b14891dbb5a84 /gdb/target-descriptions.c | |
parent | f635986e73e46f56e6f30e286fb1a3ce14fed33d (diff) | |
download | gdb-3494b66d76fd4258a2464fd43bd186558960baf5.zip gdb-3494b66d76fd4258a2464fd43bd186558960baf5.tar.gz gdb-3494b66d76fd4258a2464fd43bd186558960baf5.tar.bz2 |
2011-03-02 Michael Snyder <msnyder@vmware.com>
* target-descriptions.c (tdesc_gdb_type): No need to call
xstrdup, callee saves a copy.
Diffstat (limited to 'gdb/target-descriptions.c')
-rw-r--r-- | gdb/target-descriptions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c index 631d9d6..a3096d7 100644 --- a/gdb/target-descriptions.c +++ b/gdb/target-descriptions.c @@ -706,7 +706,7 @@ tdesc_gdb_type (struct gdbarch *gdbarch, struct tdesc_type *tdesc_type) struct tdesc_type_flag *f; int ix; - type = arch_flags_type (gdbarch, xstrdup (tdesc_type->name), + type = arch_flags_type (gdbarch, tdesc_type->name, tdesc_type->u.f.size); for (ix = 0; VEC_iterate (tdesc_type_flag, tdesc_type->u.f.flags, ix, f); |