projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5329c75
)
Allocate/free space associated with saved_entryset and saved_exitset.
author
Kevin Buettner
<kevinb@redhat.com>
Sat, 7 Jul 2001 21:55:28 +0000
(21:55 +0000)
committer
Kevin Buettner
<kevinb@redhat.com>
Sat, 7 Jul 2001 21:55:28 +0000
(21:55 +0000)
gdb/procfs.c
patch
|
blob
|
history
diff --git
a/gdb/procfs.c
b/gdb/procfs.c
index 990130c680fd4701eeb2134642977e01de45e3c4..76333ef04f66a5be3a0e16a27d1c09f915e38bf0 100644
(file)
--- a/
gdb/procfs.c
+++ b/
gdb/procfs.c
@@
-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);
}