diff options
Diffstat (limited to 'gdb/prologue-value.c')
-rw-r--r-- | gdb/prologue-value.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/prologue-value.c b/gdb/prologue-value.c index 5cd83a55480..f239371ea81 100644 --- a/gdb/prologue-value.c +++ b/gdb/prologue-value.c @@ -314,7 +314,7 @@ struct pv_area struct pv_area * make_pv_area (int base_reg, int addr_bit) { - struct pv_area *a = (struct pv_area *) xmalloc (sizeof (*a)); + struct pv_area *a = XNEW (struct pv_area); memset (a, 0, sizeof (*a)); @@ -490,7 +490,7 @@ pv_area_store (struct pv_area *area, else { CORE_ADDR offset = addr.k; - struct area_entry *e = (struct area_entry *) xmalloc (sizeof (*e)); + struct area_entry *e = XNEW (struct area_entry); e->offset = offset; e->size = size; |