Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [ob] remote.c, eliminate unused variables
@ 2010-05-05 20:47 Michael Snyder
  2010-05-05 20:51 ` Pedro Alves
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Snyder @ 2010-05-05 20:47 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: tmp10.txt --]
[-- Type: text/plain, Size: 1386 bytes --]

2010-05-05  Michael Snyder  <msnyder@vmware.com>

	* remote.c (remote_threads_info): Delete unused variable.
	(process_stop_reply): Delete unused variable.
	(remote_get_trace_status): Delete unused variables.

Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.405
diff -u -p -r1.405 remote.c
--- remote.c	5 May 2010 15:05:57 -0000	1.405
+++ remote.c	5 May 2010 20:43:46 -0000
@@ -2512,8 +2512,8 @@ remote_threads_info (struct target_ops *
 	{
 	  struct gdb_xml_parser *parser;
 	  struct threads_parsing_context context;
-	  struct cleanup *back_to = make_cleanup (null_cleanup, NULL);
 
+	  make_cleanup (null_cleanup, NULL);
 	  context.items = 0;
 	  parser = gdb_xml_create_parser_and_cleanup (_("threads"),
 						      threads_elements,
@@ -5079,7 +5079,6 @@ process_stop_reply (struct stop_reply *s
 		    struct target_waitstatus *status)
 {
   ptid_t ptid;
-  struct thread_info *info;
 
   *status = stop_reply->ws;
   ptid = stop_reply->ptid;
@@ -9637,8 +9636,7 @@ remote_trace_start (void)
 static int
 remote_get_trace_status (struct trace_status *ts)
 {
-  char *p, *p1, *p_temp;
-  ULONGEST val;
+  char *p;
   /* FIXME we need to get register block size some other way */
   extern int trace_regblock_size;
   trace_regblock_size = get_remote_arch_state ()->sizeof_g_packet;

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-05-07 18:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-05 20:47 [ob] remote.c, eliminate unused variables Michael Snyder
2010-05-05 20:51 ` Pedro Alves
2010-05-05 21:14   ` Michael Snyder
2010-05-05 21:41     ` Pedro Alves
2010-05-05 22:22       ` Michael Snyder
2010-05-05 22:39         ` Pedro Alves
2010-05-07 17:42         ` Tom Tromey
2010-05-07 18:51           ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox