From e7e5f7c6fe9329d2ca687d93169eead88c638741 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Sat, 21 Jul 2012 10:10:44 +0000 Subject: [PATCH] Localise "struct reg regs[]". git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12769 --- coregrind/m_gdbserver/valgrind-low-amd64.c | 2 +- coregrind/m_gdbserver/valgrind-low-arm.c | 2 +- coregrind/m_gdbserver/valgrind-low-mips32.c | 2 +- coregrind/m_gdbserver/valgrind-low-ppc32.c | 2 +- coregrind/m_gdbserver/valgrind-low-ppc64.c | 2 +- coregrind/m_gdbserver/valgrind-low-s390x.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/coregrind/m_gdbserver/valgrind-low-amd64.c b/coregrind/m_gdbserver/valgrind-low-amd64.c index 3d6d84553..7de55a0a3 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 1c00a270f..a3ea36f57 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 de7de88bd..cf2d60344 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 fccdb6462..9f2f36e3a 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 6f1075768..9b1a3587b 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 15d216249..017a40209 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 },