aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2001-07-07 21:55:28 +0000
committerKevin Buettner <kevinb@redhat.com>2001-07-07 21:55:28 +0000
commit1d5e060273e081d91eb8134dbfad2a4503e9a891 (patch)
tree16fae731dfdfa857824912bed031409346c9cf85
parent5329c7568dfb5bd34248a315d3dab0dca785aa12 (diff)
downloadgdb-1d5e060273e081d91eb8134dbfad2a4503e9a891.zip
gdb-1d5e060273e081d91eb8134dbfad2a4503e9a891.tar.gz
gdb-1d5e060273e081d91eb8134dbfad2a4503e9a891.tar.bz2
Allocate/free space associated with saved_entryset and saved_exitset.
-rw-r--r--gdb/procfs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 990130c..76333ef 100644
--- 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);
}