]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Define pass_signals[] only once such that Valgrind can be built with -fno-common...
authorBart Van Assche <bvanassche@acm.org>
Wed, 18 May 2011 16:08:28 +0000 (16:08 +0000)
committerBart Van Assche <bvanassche@acm.org>
Wed, 18 May 2011 16:08:28 +0000 (16:08 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11777

coregrind/m_gdbserver/server.c
coregrind/m_gdbserver/server.h

index 069d1dcfbb669ea8b9f071815b83f19c2631967c..546fe3b09857b529ad593ecbf39ee72651cade0e 100644 (file)
@@ -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.
index be2b548f3bbb14e0b7d9f885457791c022566da4..dc1b1280e5f307b78545f6f4616b122deafbe9dd 100644 (file)
@@ -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"