gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 26 Nov 2010 00:30:31 +0000 (00:30 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 26 Nov 2010 00:30:31 +0000 (00:30 +0000)
* infcall.c (caller_state_cleanup): Remove variable caller_state_cleanup.

gdb/ChangeLog
gdb/infcall.c

index 173af54f42a1f4e16210b70237a25c7f26cfb705..fc31160de99409d28f3bed2e1695570c4d1cc256 100644 (file)
@@ -1,3 +1,7 @@
+2010-11-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * infcall.c (caller_state_cleanup): Remove variable caller_state_cleanup.
+
 2010-11-25  Marc Khouzam  <marc.khouzam@ericsson.com>
 
        PR breakpoints/12217
index 7f60e5689911114118455e2e749b4bde189e87bc..68343b8452714053f5fa15fc4d25bdd6384477f5 100644 (file)
@@ -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.  */
   {