diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-06-10 09:30:34 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-06-10 09:30:34 +0000 |
commit | 3d3191a6ad8488986858373778fb8edf7e02715d (patch) | |
tree | bf735bfef7cce4df19c03012a667d8d655a36014 /gdb | |
parent | 0b080f5982d636d473d4fb9e62ef1ee00b28fdbc (diff) | |
download | gdb-3d3191a6ad8488986858373778fb8edf7e02715d.zip gdb-3d3191a6ad8488986858373778fb8edf7e02715d.tar.gz gdb-3d3191a6ad8488986858373778fb8edf7e02715d.tar.bz2 |
Remove stale code.
* 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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/infcmd.c | 7 |
2 files changed, 9 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a00c5fa..1d80cc6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 2008-06-10 Vladimir Prus <vladimir@codesourcery.com> + Remove stale code. + * 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. + +2008-06-10 Vladimir Prus <vladimir@codesourcery.com> + Introduce common cleanup for restoring integers. * defs.h (make_cleanup_restore_integer): New declaration. (struct cleanup): New field free_arg. diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 2397c30..30858f1 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1278,7 +1278,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) { @@ -1369,14 +1368,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 |