From 962b24aa709c684a616070453b7f9d31175a2d61 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sun, 4 May 2008 12:09:45 +0400 Subject: [RFA] Remove stale code. To: gdb-patches@sources.redhat.com X-KMail-Transport: CodeSourcery X-KMail-Identity: 901867920 * infrun.c (finish_command): Don't pass cleanup to continuation. (finish_command_continuation): Don't grab cleanup from the passed data, as we don't use, and cannot, use it anyway. --- gdb/infcmd.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/gdb/infcmd.c b/gdb/infcmd.c index abf1354..66c8a05 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1263,7 +1263,6 @@ finish_command_continuation (struct continuation_arg *arg, int error_p) breakpoint = (struct breakpoint *) arg->data.pointer; function = (struct symbol *) arg->next->data.pointer; - cleanups = (struct cleanup *) arg->next->next->data.pointer; if (!error_p) { @@ -1354,14 +1353,10 @@ finish_command (char *arg, int from_tty) (struct continuation_arg *) xmalloc (sizeof (struct continuation_arg)); arg2 = (struct continuation_arg *) xmalloc (sizeof (struct continuation_arg)); - arg3 = - (struct continuation_arg *) xmalloc (sizeof (struct continuation_arg)); arg1->next = arg2; - arg2->next = arg3; - arg3->next = NULL; + arg2->next = NULL; arg1->data.pointer = breakpoint; arg2->data.pointer = function; - arg3->data.pointer = old_chain; add_continuation (finish_command_continuation, arg1); /* Do this only if not running asynchronously or if the target -- 1.5.3.5