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]

[RFA] gdbserver: also issue remote debug information for getpkt in no-ack-mode


  gdbserver with --remote-debug
only prints out putpkt information
if noack_mode is set.
  getpkt debug information is only printed out
if noack_mode is zero.

  The following patch also issues
getpkt debug information if noack_mode is non-zero.  

  Is this OK?

  I am still not capable of running
a testsuite for gdbserver...
  thus I can't give you any results on
the testsuite.

  Could someone tell me how to setup a
dejagnu target to run the testsuite 
with cygwin gdbserver on a cygwin machine?


Pierre Muller
Pascal language support maintainer for GDB


gdbserver/ChangeLog entry:

2009-02-09  Pierre Muller  <muller@ics.u-strasbg.fr>

	* remote-utils.c (getpkt): Also generate remote-debug
	information if noack_mode is set.

  




Index: gdb/gdbserver/remote-utils.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/remote-utils.c,v
retrieving revision 1.60
diff -u -p -r1.60 remote-utils.c
--- gdb/gdbserver/remote-utils.c	3 Jan 2009 05:57:57 -0000	1.60
+++ gdb/gdbserver/remote-utils.c	9 Feb 2009 15:44:54 -0000
@@ -823,6 +823,15 @@ getpkt (char *buf)
 	  fflush (stderr);
 	}
     }
+  else
+    {
+      if (remote_debug)
+	{
+	  fprintf (stderr, "getpkt (\"%s\");  [no ack sent] \n", buf);
+	  fflush (stderr);
+	}
+
+    }
 
   return bp - buf;
 }


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