aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-07-06 14:42:55 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-07-06 14:42:55 +0100
commitac9fcaa957b4305d0f9417b1bc428e08bb008d8a (patch)
treeefc5d9ea0501967ec133a63ef7e6d461c27930ca /tools
parentfefb7c8d3bbb4986ea9f43b2b7685245f5fe18a5 (diff)
downloadxen-ac9fcaa957b4305d0f9417b1bc428e08bb008d8a.tar.gz
xen-ac9fcaa957b4305d0f9417b1bc428e08bb008d8a.tar.bz2
xen-ac9fcaa957b4305d0f9417b1bc428e08bb008d8a.zip
Export debugger attached state to xc API.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Diffstat (limited to 'tools')
-rw-r--r--tools/libxc/xc_domain.c1
-rw-r--r--tools/libxc/xenctrl.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
index 92a8b98511..11c14247a2 100644
--- a/tools/libxc/xc_domain.c
+++ b/tools/libxc/xc_domain.c
@@ -181,6 +181,7 @@ int xc_domain_getinfo(int xc_handle,
info->blocked = !!(domctl.u.getdomaininfo.flags&XEN_DOMINF_blocked);
info->running = !!(domctl.u.getdomaininfo.flags&XEN_DOMINF_running);
info->hvm = !!(domctl.u.getdomaininfo.flags&XEN_DOMINF_hvm_guest);
+ info->debugged = !!(domctl.u.getdomaininfo.flags&XEN_DOMINF_debugged);
info->shutdown_reason =
(domctl.u.getdomaininfo.flags>>XEN_DOMINF_shutdownshift) &
diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h
index 25def6b9fc..4f885cffb2 100644
--- a/tools/libxc/xenctrl.h
+++ b/tools/libxc/xenctrl.h
@@ -153,7 +153,7 @@ typedef struct xc_dominfo {
uint32_t ssidref;
unsigned int dying:1, crashed:1, shutdown:1,
paused:1, blocked:1, running:1,
- hvm:1;
+ hvm:1, debugged:1;
unsigned int shutdown_reason; /* only meaningful if shutdown==1 */
unsigned long nr_pages;
unsigned long shared_info_frame;