diff options
author | Kevin Buettner <kevinb@redhat.com> | 2001-07-07 22:02:51 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2001-07-07 22:02:51 +0000 |
commit | 775cbfc24551f7d6d7617ebba579a51b861b87cc (patch) | |
tree | 44044e25e97eaa9a7ea939b2820c2cdeb4efce06 | |
parent | 4d26c9bb2b76b8da4b320de9718feaa72c69e27e (diff) | |
download | gdb-775cbfc24551f7d6d7617ebba579a51b861b87cc.tar.gz |
Allocate/free space associated with saved_entryset and saved_exitset.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/procfs.c | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3e641c1c76c..1f99bed2959 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2001-07-07 Kevin Buettner <kevinb@redhat.com> + + * procfs.c (create_procinfo): Allocate space for saved_entryset + and saved_exitset. + (destroy_one_procinfo): Free space allocated to saved_entryset + and saved_exitset. + 2001-07-07 Andrew Cagney <ac131313@redhat.com> * TODO (5.1): Update. diff --git a/gdb/procfs.c b/gdb/procfs.c index 990130c680f..76333ef04f6 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); } |