From fef8420a2d8db6df0e5af0b437846b75ae1dac27 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 26 Nov 2010 00:30:31 +0000 Subject: [PATCH] gdb/ * infcall.c (caller_state_cleanup): Remove variable caller_state_cleanup. --- gdb/ChangeLog | 4 ++++ gdb/infcall.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 173af54f42a..fc31160de99 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-11-26 Jan Kratochvil + + * infcall.c (caller_state_cleanup): Remove variable caller_state_cleanup. + 2010-11-25 Marc Khouzam PR breakpoints/12217 diff --git a/gdb/infcall.c b/gdb/infcall.c index 7f60e568991..68343b84527 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. */ { -- 2.30.2