From: Pierre-Marc Fournier Date: Wed, 9 Dec 2009 19:10:05 +0000 (-0500) Subject: more fixes of conditional compilation of gdb support X-Git-Tag: v1.9.1~810 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fc1f31abdc05e2211bfe1fb13cef2091a5e68d23;p=lttng-ust.git more fixes of conditional compilation of gdb support --- diff --git a/include/ust/processor.h b/include/ust/processor.h index 085fa1a5..7ed7d2ec 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,