ia64/xen-unstable

changeset 9780:83ba928544c4

The Xen Hypervisor currently operates a bit differently when the
guest is being debugged. The differences are handling of int3 exception
and missed pit timer injections. The Xen hypervisor should get back to
the normal mode when the gdb connection is closed. With the attached
patch gdbserver properly detaches from the guest when the gdb detaches
or quits.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Apr 19 22:19:41 2006 +0100 (2006-04-19)
parents b0ee5d9b9ebd
children 3ff86698f394
files tools/debugger/gdb/gdb-6.2.1-xen-sparse/gdb/gdbserver/server.c
line diff
     1.1 --- a/tools/debugger/gdb/gdb-6.2.1-xen-sparse/gdb/gdbserver/server.c	Wed Apr 19 18:43:39 2006 +0100
     1.2 +++ b/tools/debugger/gdb/gdb-6.2.1-xen-sparse/gdb/gdbserver/server.c	Wed Apr 19 22:19:41 2006 +0100
     1.3 @@ -664,17 +664,13 @@ main (int argc, char *argv[])
     1.4  
     1.5           For the traditional remote protocol close the connection,
     1.6           and re-open it at the top of the loop.  */
     1.7 -      if (extended_protocol)
     1.8 -	{
     1.9 -	  remote_close ();
    1.10 +    detach_inferior ();
    1.11 +    remote_close ();
    1.12 +    if (extended_protocol)
    1.13  	  exit (0);
    1.14 -	}
    1.15 -      else
    1.16 -	{
    1.17 +    else
    1.18  	  fprintf (stderr, "Remote side has terminated connection.  "
    1.19  			   "GDBserver will reopen the connection.\n");
    1.20 -	  remote_close ();
    1.21 -	}
    1.22      sigaction(SIGINT, &old_sigaction, NULL);
    1.23      }
    1.24  }