From: Julian Seward Date: Sat, 21 Jul 2012 10:10:44 +0000 (+0000) Subject: Localise "struct reg regs[]". X-Git-Tag: svn/VALGRIND_3_8_0~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7e5f7c6fe9329d2ca687d93169eead88c638741;p=thirdparty%2Fvalgrind.git Localise "struct reg regs[]". git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12769 --- diff --git a/coregrind/m_gdbserver/valgrind-low-amd64.c b/coregrind/m_gdbserver/valgrind-low-amd64.c index 3d6d84553f..7de55a0a35 100644 --- a/coregrind/m_gdbserver/valgrind-low-amd64.c +++ b/coregrind/m_gdbserver/valgrind-low-amd64.c @@ -41,7 +41,7 @@ /* below loosely inspired from file generated with gdb regdat.sh */ -struct reg regs[] = { +static struct reg regs[] = { { "rax", 0, 64 }, { "rbx", 64, 64 }, { "rcx", 128, 64 }, diff --git a/coregrind/m_gdbserver/valgrind-low-arm.c b/coregrind/m_gdbserver/valgrind-low-arm.c index 1c00a270f7..a3ea36f57a 100644 --- a/coregrind/m_gdbserver/valgrind-low-arm.c +++ b/coregrind/m_gdbserver/valgrind-low-arm.c @@ -37,7 +37,7 @@ #include "libvex_guest_arm.h" -struct reg regs[] = { +static struct reg regs[] = { { "r0", 0, 32 }, { "r1", 32, 32 }, { "r2", 64, 32 }, diff --git a/coregrind/m_gdbserver/valgrind-low-mips32.c b/coregrind/m_gdbserver/valgrind-low-mips32.c index de7de88bd1..cf2d603448 100644 --- a/coregrind/m_gdbserver/valgrind-low-mips32.c +++ b/coregrind/m_gdbserver/valgrind-low-mips32.c @@ -36,7 +36,7 @@ #include "libvex_guest_mips32.h" -struct reg regs[] = { +static struct reg regs[] = { { "r0", 0, 32 }, { "r1", 32, 32 }, { "r2", 64, 32 }, diff --git a/coregrind/m_gdbserver/valgrind-low-ppc32.c b/coregrind/m_gdbserver/valgrind-low-ppc32.c index fccdb64625..9f2f36e3ad 100644 --- a/coregrind/m_gdbserver/valgrind-low-ppc32.c +++ b/coregrind/m_gdbserver/valgrind-low-ppc32.c @@ -39,7 +39,7 @@ /* this is only the basic set of registers. Need to look at what is the exact ppc32 model to support. */ -struct reg regs[] = { +static struct reg regs[] = { { "r0", 0, 32 }, { "r1", 32, 32 }, { "r2", 64, 32 }, diff --git a/coregrind/m_gdbserver/valgrind-low-ppc64.c b/coregrind/m_gdbserver/valgrind-low-ppc64.c index 6f1075768b..9b1a3587b4 100644 --- a/coregrind/m_gdbserver/valgrind-low-ppc64.c +++ b/coregrind/m_gdbserver/valgrind-low-ppc64.c @@ -36,7 +36,7 @@ #include "libvex_guest_ppc64.h" -struct reg regs[] = { +static struct reg regs[] = { { "r0", 0, 64 }, { "r1", 64, 64 }, { "r2", 128, 64 }, diff --git a/coregrind/m_gdbserver/valgrind-low-s390x.c b/coregrind/m_gdbserver/valgrind-low-s390x.c index 15d216249e..017a402099 100644 --- a/coregrind/m_gdbserver/valgrind-low-s390x.c +++ b/coregrind/m_gdbserver/valgrind-low-s390x.c @@ -36,7 +36,7 @@ #include "libvex_guest_s390x.h" -struct reg regs[] = { +static struct reg regs[] = { { "pswm", 0, 64 }, { "pswa", 64, 64 }, { "r0", 128, 64 },