This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[obv] Remove unused call_function_by_hand variable


Hi,

that variable is not used there.

The cleanup is soon discarded and tracked by DUMMY_ID, I do not see there it
could be just some simple typo, it was just unused.


Regards,
Jan


Http://sourceware.org/ml/gdb-cvs/2010-11/msg00145.html
http://sourceware.org/ml/gdb-cvs/2010-11/msg00146.html

--- src/gdb/ChangeLog	2010/11/25 23:17:30	1.12346
+++ src/gdb/ChangeLog	2010/11/26 00:30:31	1.12347
@@ -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
--- src/gdb/infcall.c	2010/10/04 22:32:31	1.132
+++ src/gdb/infcall.c	2010/11/26 00:30:31	1.133
@@ -443,7 +443,6 @@
   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 @@
      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.  */
   {
--- src/gdb/ChangeLog	2010/11/26 00:30:31	1.12347
+++ src/gdb/ChangeLog	2010/11/26 00:33:56	1.12348
@@ -1,6 +1,7 @@
 2010-11-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
-	* infcall.c (caller_state_cleanup): Remove variable caller_state_cleanup.
+	* infcall.c (call_function_by_hand): Remove variable
+	caller_state_cleanup.
 
 2010-11-25  Marc Khouzam  <marc.khouzam@ericsson.com>
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]