projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replace some xmalloc-family functions with XNEW-family ones
[deliverable/binutils-gdb.git]
/
gdb
/
xtensa-tdep.c
diff --git
a/gdb/xtensa-tdep.c
b/gdb/xtensa-tdep.c
index 4b693edf2683ff988944765126ce209cf19cce3d..c3b22e0fb57a69f3e78e93ccb1c2784bfd677c8b 100644
(file)
--- a/
gdb/xtensa-tdep.c
+++ b/
gdb/xtensa-tdep.c
@@
-317,7
+317,8
@@
xtensa_register_type (struct gdbarch *gdbarch, int regnum)
if (tp == NULL)
{
char *name = xstrprintf ("int%d", size * 8);
- tp = xmalloc (sizeof (struct ctype_cache));
+
+ tp = XNEW (struct ctype_cache);
tp->next = tdep->type_entries;
tdep->type_entries = tp;
tp->size = size;
This page took
0.024684 seconds
and
4
git commands to generate.