Allocate/free space associated with saved_entryset and saved_exitset.
authorKevin Buettner <kevinb@redhat.com>
Sat, 7 Jul 2001 21:55:28 +0000 (21:55 +0000)
committerKevin Buettner <kevinb@redhat.com>
Sat, 7 Jul 2001 21:55:28 +0000 (21:55 +0000)
gdb/procfs.c

index 990130c680fd4701eeb2134642977e01de45e3c4..76333ef04f66a5be3a0e16a27d1c09f915e38bf0 100644 (file)
@@ -674,6 +674,9 @@ create_procinfo (int pid, int tid)
   load_syscalls (pi);
 #endif
 
+  pi->saved_entryset = sysset_t_alloc (pi);
+  pi->saved_exitset = sysset_t_alloc (pi);
+
   /* Chain into list.  */
   if (tid == 0)
     {
@@ -743,6 +746,8 @@ destroy_one_procinfo (procinfo **list, procinfo *pi)
 #ifdef DYNAMIC_SYSCALLS
   free_syscalls (pi);
 #endif
+  xfree (pi->saved_entryset);
+  xfree (pi->saved_exitset);
   xfree (pi);
 }