From: Bart Van Assche Date: Wed, 18 May 2011 16:08:28 +0000 (+0000) Subject: Define pass_signals[] only once such that Valgrind can be built with -fno-common... X-Git-Tag: svn/VALGRIND_3_7_0~460 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bdf51c14bef517b1c6ff85cc16a64ec52e22d04;p=thirdparty%2Fvalgrind.git 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. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11777 --- diff --git a/coregrind/m_gdbserver/server.c b/coregrind/m_gdbserver/server.c index 069d1dcfbb..546fe3b098 100644 --- a/coregrind/m_gdbserver/server.c +++ b/coregrind/m_gdbserver/server.c @@ -33,6 +33,8 @@ unsigned long step_thread; 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. diff --git a/coregrind/m_gdbserver/server.h b/coregrind/m_gdbserver/server.h index be2b548f3b..dc1b1280e5 100644 --- a/coregrind/m_gdbserver/server.h +++ b/coregrind/m_gdbserver/server.h @@ -242,7 +242,7 @@ extern Bool gdbserver_deliver_signal (Int sigNo); 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"