aboutsummaryrefslogtreecommitdiff
path: root/gdb/user-regs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/user-regs.c')
-rw-r--r--gdb/user-regs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/user-regs.c b/gdb/user-regs.c
index 480c968..db0cac8 100644
--- a/gdb/user-regs.c
+++ b/gdb/user-regs.c
@@ -85,7 +85,7 @@ user_reg_add_builtin (const char *name, user_reg_read_ftype *read,
const void *baton)
{
append_user_reg (&builtin_user_regs, name, read, baton,
- XMALLOC (struct user_reg));
+ XNEW (struct user_reg));
}
/* Per-architecture user registers. Start with the builtin user