aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcall.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-11-26 00:30:31 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-11-26 00:30:31 +0000
commitfef8420a2d8db6df0e5af0b437846b75ae1dac27 (patch)
treeb50f6479973246aac62ec136b19ac3596bc6167d /gdb/infcall.c
parenta9a7adc0f412f75f0e925d20b05cb998e0a7f12b (diff)
downloadgdb-fef8420a2d8db6df0e5af0b437846b75ae1dac27.zip
gdb-fef8420a2d8db6df0e5af0b437846b75ae1dac27.tar.gz
gdb-fef8420a2d8db6df0e5af0b437846b75ae1dac27.tar.bz2
gdb/
* infcall.c (caller_state_cleanup): Remove variable caller_state_cleanup.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r--gdb/infcall.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 7f60e56..68343b8 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -443,7 +443,6 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
struct inferior_status *inf_status;
struct cleanup *inf_status_cleanup;
struct inferior_thread_state *caller_state;
- struct cleanup *caller_state_cleanup;
CORE_ADDR funaddr;
CORE_ADDR real_pc;
struct type *ftype = check_typedef (value_type (function));
@@ -483,7 +482,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
down) pushed onto a dummy frame stack. Include a cleanup (which
is tossed once the regcache has been pushed). */
caller_state = save_inferior_thread_state ();
- caller_state_cleanup = make_cleanup_restore_inferior_thread_state (caller_state);
+ make_cleanup_restore_inferior_thread_state (caller_state);
/* Ensure that the initial SP is correctly aligned. */
{