aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-08-08 15:51:45 +0000
committerTom Tromey <tromey@redhat.com>2011-08-08 15:51:45 +0000
commit29d0bb3d47bf7bf61acbfd1c25017b9a4cb968a3 (patch)
tree58b9b6c5059b55ff17540978d1291c1568ec1d90 /gdb
parent5a5cbf7230bb75d9ed5c7badb2a7fc69162b98ec (diff)
downloadgdb-29d0bb3d47bf7bf61acbfd1c25017b9a4cb968a3.zip
gdb-29d0bb3d47bf7bf61acbfd1c25017b9a4cb968a3.tar.gz
gdb-29d0bb3d47bf7bf61acbfd1c25017b9a4cb968a3.tar.bz2
* breakpoint.c (clean_up_filters): Remove.
(catch_syscall_split_args): Use VEC_cleanup.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/breakpoint.c10
2 files changed, 6 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bfc049a..e21006e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-08 Tom Tromey <tromey@redhat.com>
+
+ * breakpoint.c (clean_up_filters): Remove.
+ (catch_syscall_split_args): Use VEC_cleanup.
+
2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
* cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 1495a5e..d8c54e4 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -9937,21 +9937,13 @@ init_ada_exception_breakpoint (struct breakpoint *b,
b->language = language_ada;
}
-/* Cleanup function for a syscall filter list. */
-static void
-clean_up_filters (void *arg)
-{
- VEC(int) *iter = *(VEC(int) **) arg;
- VEC_free (int, iter);
-}
-
/* Splits the argument using space as delimiter. Returns an xmalloc'd
filter list, or NULL if no filtering is required. */
static VEC(int) *
catch_syscall_split_args (char *arg)
{
VEC(int) *result = NULL;
- struct cleanup *cleanup = make_cleanup (clean_up_filters, &result);
+ struct cleanup *cleanup = make_cleanup (VEC_cleanup (int), &result);
while (*arg != '\0')
{