gdbsx: Always build -- remove build-time config option.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2010-07-02 18:52:12 +01:00
1 parent 8c5c89fc7c
commit 6634a6768c
7 files changed
+4 -17

No files matched your search

-2
View File
@@ -8,7 +8,6 @@ perfc ?= n
perfc_arrays ?= n
lock_profile ?= n
crash_debug ?= n
gdbsx ?= n
frame_pointer ?= n
XEN_ROOT=$(BASEDIR)/..
@@ -53,7 +52,6 @@ CFLAGS-$(perfc) += -DPERF_COUNTERS
CFLAGS-$(perfc_arrays) += -DPERF_ARRAYS
CFLAGS-$(lock_profile) += -DLOCK_PROFILE
CFLAGS-$(frame_pointer) += -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER
CFLAGS-$(gdbsx) += -DXEN_GDBSX_CONFIG
ifneq ($(max_phys_cpus),)
CFLAGS-y += -DMAX_PHYS_CPUS=$(max_phys_cpus)
+1 -1
View File
@@ -13,6 +13,7 @@ obj-y += bitops.o
obj-y += clear_page.o
obj-y += copy_page.o
obj-y += compat.o
obj-y += debug.o
obj-y += delay.o
obj-y += dmi_scan.o
obj-y += domctl.o
@@ -57,7 +58,6 @@ obj-y += hpet.o
obj-y += bzimage.o
obj-$(crash_debug) += gdbstub.o
obj-$(gdbsx) += debug.o
x86_emulate.o: x86_emulate/x86_emulate.c x86_emulate/x86_emulate.h
+3 -6
View File
@@ -34,7 +34,6 @@
#include <public/mem_event.h>
#include <asm/mem_sharing.h>
#ifdef XEN_GDBSX_CONFIG
#ifdef XEN_KDB_CONFIG
#include "../kdb/include/kdbdefs.h"
#include "../kdb/include/kdbproto.h"
@@ -43,8 +42,9 @@ typedef unsigned long kdbva_t;
typedef unsigned char kdbbyt_t;
extern int dbg_rw_mem(kdbva_t, kdbbyt_t *, int, domid_t, int, uint64_t);
#endif
static int
gdbsx_guest_mem_io(domid_t domid, struct xen_domctl_gdbsx_memio *iop)
static int gdbsx_guest_mem_io(
domid_t domid, struct xen_domctl_gdbsx_memio *iop)
{
ulong l_uva = (ulong)iop->uva;
iop->remain = dbg_rw_mem(
@@ -52,7 +52,6 @@ gdbsx_guest_mem_io(domid_t domid, struct xen_domctl_gdbsx_memio *iop)
iop->gwr, iop->pgd3val);
return (iop->remain ? -EFAULT : 0);
}
#endif /* XEN_GDBSX_CONFIG */
long arch_do_domctl(
struct xen_domctl *domctl,
@@ -1309,7 +1308,6 @@ long arch_do_domctl(
}
break;
#ifdef XEN_GDBSX_CONFIG
case XEN_DOMCTL_gdbsx_guestmemio:
{
struct domain *d;
@@ -1418,7 +1416,6 @@ long arch_do_domctl(
rcu_unlock_domain(d);
}
break;
#endif /* XEN_GDBSX_CONFIG */
#ifdef __x86_64__
case XEN_DOMCTL_mem_event_op:
-2
View File
@@ -1492,9 +1492,7 @@ asmlinkage void svm_vmexit_handler(struct cpu_user_regs *regs)
if ( (inst_len = __get_instruction_length(v, INSTR_INT3)) == 0 )
break;
__update_guest_eip(regs, inst_len);
#ifdef XEN_GDBSX_CONFIG
current->arch.gdbsx_vcpu_event = TRAP_int3;
#endif
domain_pause_for_debugger();
break;
-2
View File
@@ -2406,9 +2406,7 @@ asmlinkage void vmx_vmexit_handler(struct cpu_user_regs *regs)
goto exit_and_crash;
inst_len = __get_instruction_length(); /* Safe: INT3 */
__update_guest_eip(inst_len);
#ifdef XEN_GDBSX_CONFIG
current->arch.gdbsx_vcpu_event = TRAP_int3;
#endif
domain_pause_for_debugger();
break;
case TRAP_no_device:
-2
View File
@@ -68,10 +68,8 @@ static inline int debugger_trap_entry(
if ( guest_kernel_mode(v, regs) && v->domain->debugger_attached &&
((vector == TRAP_int3) || (vector == TRAP_debug)) )
{
#ifdef XEN_GDBSX_CONFIG
if ( vector != TRAP_debug ) /* domain pause is good enough */
current->arch.gdbsx_vcpu_event = vector;
#endif
domain_pause_for_debugger();
return 1;
}
-2
View File
@@ -415,9 +415,7 @@ struct arch_vcpu
struct mapcache_vcpu mapcache;
#endif
#if XEN_GDBSX_CONFIG
uint32_t gdbsx_vcpu_event;
#endif
/* A secondary copy of the vcpu time info. */
XEN_GUEST_HANDLE(vcpu_time_info_t) time_info_guest;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.