|
From: <sv...@va...> - 2011-05-18 16:08:36
|
Author: bart
Date: 2011-05-18 17:08:28 +0100 (Wed, 18 May 2011)
New Revision: 11777
Log:
Define pass_signals[] only once such that Valgrind can be built with -fno-common. This is a modified version of the second patch attached to #273536.
Modified:
trunk/coregrind/m_gdbserver/server.c
trunk/coregrind/m_gdbserver/server.h
Modified: trunk/coregrind/m_gdbserver/server.c
===================================================================
--- trunk/coregrind/m_gdbserver/server.c 2011-05-18 16:04:46 UTC (rev 11776)
+++ trunk/coregrind/m_gdbserver/server.c 2011-05-18 16:08:28 UTC (rev 11777)
@@ -33,6 +33,8 @@
unsigned long thread_from_wait;
unsigned long old_thread_from_wait;
+int pass_signals[TARGET_SIGNAL_LAST];
+
/* for a gdbserver integrated in valgrind, resuming the process consists
in returning the control to valgrind.
Then at the next error or break or ..., valgrind calls gdbserver again.
Modified: trunk/coregrind/m_gdbserver/server.h
===================================================================
--- trunk/coregrind/m_gdbserver/server.h 2011-05-18 16:04:46 UTC (rev 11776)
+++ trunk/coregrind/m_gdbserver/server.h 2011-05-18 16:08:28 UTC (rev 11777)
@@ -242,7 +242,7 @@
A 0 indicates gdb has to be consulted to see if signal has
or has not to be passed. The gdb consultation is to
be done using the above two functions. */
-int pass_signals[TARGET_SIGNAL_LAST];
+extern int pass_signals[];
#include "target.h"
|