linux-thread-db.c (record_thread): Return the created thread.
[deliverable/binutils-gdb.git] / gdb / inferior.c
index 2e44f175bb1442a438c536b55d5018d6c4b220fb..04e9a286d5681c7c5d8d24215a20b1af490b054d 100644 (file)
@@ -128,7 +128,7 @@ add_inferior_silent (int pid)
 {
   struct inferior *inf;
 
-  inf = xmalloc (sizeof (*inf));
+  inf = XNEW (struct inferior);
   memset (inf, 0, sizeof (*inf));
   inf->pid = pid;
 
This page took 0.024617 seconds and 4 git commands to generate.