* server.c (main): After the inferior having exited, call
authorPedro Alves <palves@redhat.com>
Tue, 31 Mar 2009 22:46:36 +0000 (22:46 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 31 Mar 2009 22:46:36 +0000 (22:46 +0000)
remote_close before exiting gdbserver.

gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c

index 68ad1a54a9d97c56650e29567afea28c71aab324..eb7d0c7ef6a70ac113c54d65f7921cf60aa32f4a 100644 (file)
@@ -1,3 +1,8 @@
+2009-03-31  Pedro Alves  <pedro@codesourcery.com>
+
+       * server.c (main): After the inferior having exited, call
+       remote_close before exiting gdbserver.
+
 2009-03-25  Thiago Jung Bauermann  <bauerman@br.ibm.com>
 
        Fix size of FPSCR in Power 7 processors.
index 21fbc37fea29f9dbe4a671830cd1a81056107765..aef6be763ff109612c061efa108d7a4e1a6d9e2b 100644 (file)
@@ -1959,6 +1959,7 @@ main (int argc, char *argv[])
              else
                {
                  fprintf (stderr, "GDBserver exiting\n");
+                 remote_close ();
                  exit (0);
                }
            }