From fc1f31abdc05e2211bfe1fb13cef2091a5e68d23 Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Wed, 9 Dec 2009 14:10:05 -0500 Subject: [PATCH] more fixes of conditional compilation of gdb support --- include/ust/processor.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/ust/processor.h b/include/ust/processor.h index 085fa1a..7ed7d2e 100644 --- a/include/ust/processor.h +++ b/include/ust/processor.h @@ -32,12 +32,12 @@ struct registers { #error "GDB integration not supported for x86-32 yet." -#define save_ip() +#define save_ip(channel,name) #define save_registers(a) #else /* CONFIG_UST_GDB_INTEGRATION */ -#define save_ip() +#define save_ip(channel,name) #define save_registers(a) #endif /* CONFIG_UST_GDB_INTEGRATION */ @@ -204,6 +204,11 @@ struct registers { memcpy(regsptr, (void *)ust_reg_stack_ptr, sizeof(struct registers)); \ ust_reg_stack_ptr = (void *)(((long)ust_reg_stack_ptr) + sizeof(struct registers)); +#else /* CONFIG_UST_GDB_INTEGRATION */ + +#define save_ip(channel,name) +#define save_registers(a) + #endif /* CONFIG_UST_GDB_INTEGRATION */ /* Macro to insert the address of a relative jump in an assembly stub, -- 2.34.1