Perform all tests in callfuncs.exp with and without C function prototypes
[deliverable/binutils-gdb.git] / gdb / user-regs.c
index 43364299d1d2fb63763bee7b8ae609675700276e..35d64eccb16c29a47dd36e14adcf20d78cd0ea56 100644 (file)
@@ -1,6 +1,6 @@
 /* User visible, per-frame registers, for GDB, the GNU debugger.
 
-   Copyright (C) 2002-2013 Free Software Foundation, Inc.
+   Copyright (C) 2002-2014 Free Software Foundation, Inc.
 
    Contributed by Red Hat.
 
@@ -22,8 +22,6 @@
 #include "defs.h"
 #include "user-regs.h"
 #include "gdbtypes.h"
-#include "gdb_string.h"
-#include "gdb_assert.h"
 #include "frame.h"
 
 /* A table of user registers.
@@ -85,7 +83,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
This page took 0.023508 seconds and 4 git commands to generate.