Implement a GDB server in Valgrind.  See #214909.
(Philippe Waroquiers, philippe.waroquiers@skynet.be)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11727 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/gdbserver_tests/mcbreak.stdoutB.exp b/gdbserver_tests/mcbreak.stdoutB.exp
new file mode 100644
index 0000000..2c51b39
--- /dev/null
+++ b/gdbserver_tests/mcbreak.stdoutB.exp
@@ -0,0 +1,56 @@
+Remote debugging using | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcbreak
+0x........ in _start () from ...start file...
+Breakpoint 1 at 0x........: file t.c, line 112.
+Breakpoint 2 at 0x........: file t.c, line 117.
+Continuing.
+Breakpoint 1, main (argc=1, argv=0x........) at t.c:112
+112	  breakme(__LINE__); //break1
+breakme (line=112) at t.c:100
+100	   if (line > 1000)
+old_pc has changed after step
+102	}
+old_pc has changed after step
+main (argc=1, argv=0x........) at t.c:113
+113	  for (i = len-1; i >= 0; i=i-2)
+old_pc has changed after step
+114	     undefined[i] = undef;
+$1 = void
+$2 = "undefined"
+$3 = 8
+113	  for (i = len-1; i >= 0; i=i-2)
+old_pc has changed after step
+114	     undefined[i] = undef;
+old_pc has changed after step
+113	  for (i = len-1; i >= 0; i=i-2)
+$4 = void
+$5 = "undefi?e?"
+$6 = 6
+114	     undefined[i] = undef;
+$7 = void
+$8 = "undefi?e?"
+$9 = 4
+113	  for (i = len-1; i >= 0; i=i-2)
+$10 = void
+$11 = "unde?i?e?"
+$12 = 4
+$13 = 1
+$14 = void
+Continuing.
+Breakpoint 2, main (argc=1, argv=0x........) at t.c:117
+117	  breakme(__LINE__); //break2
+breakme (line=117) at t.c:100
+100	   if (line > 1000)
+Run till exit from #0  breakme (line=117) at t.c:100
+main (argc=1, argv=0x........) at t.c:119
+119	  if (argc > 1)
+Delete all breakpoints? (y or n) [answered Y; input not from terminal]
+Continuing.
+Program received signal SIGTRAP, Trace/breakpoint trap.
+0x........ in make_error (s=0x........ "called from level") at t.c:40
+40	  if (int_und == 0)
+43	     printf ("%s int_und is not zero\n", s);
+old_pc has changed after step
+Continuing.
+Program received signal SIGTRAP, Trace/breakpoint trap.
+0x........ in make_error (s=0x........ "called from main") at t.c:40
+40	  if (int_und == 0)