* breakpoint.c (clean_up_filters): Remove.
(catch_syscall_split_args): Use VEC_cleanup.
This commit is contained in:
parent
5a5cbf7230
commit
29d0bb3d47
2 changed files with 6 additions and 9 deletions
|
@ -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.
|
||||
|
|
|
@ -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')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue