From 29d0bb3d47bf7bf61acbfd1c25017b9a4cb968a3 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 8 Aug 2011 15:51:45 +0000 Subject: [PATCH] * breakpoint.c (clean_up_filters): Remove. (catch_syscall_split_args): Use VEC_cleanup. --- gdb/ChangeLog | 5 +++++ gdb/breakpoint.c | 10 +--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bfc049aebab..e21006e3b0c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-08-08 Tom Tromey + + * breakpoint.c (clean_up_filters): Remove. + (catch_syscall_split_args): Use VEC_cleanup. + 2011-08-06 Jan Kratochvil * cp-name-parser.y (xfree): Wrap the name free by CONCAT2. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 1495a5eb207..d8c54e4f7a2 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') { -- 2.30.2