|
From: <sv...@va...> - 2012-07-21 10:10:51
|
sewardj 2012-07-21 11:10:44 +0100 (Sat, 21 Jul 2012)
New Revision: 12769
Log:
Localise "struct reg regs[]".
Modified files:
trunk/coregrind/m_gdbserver/valgrind-low-amd64.c
trunk/coregrind/m_gdbserver/valgrind-low-arm.c
trunk/coregrind/m_gdbserver/valgrind-low-mips32.c
trunk/coregrind/m_gdbserver/valgrind-low-ppc32.c
trunk/coregrind/m_gdbserver/valgrind-low-ppc64.c
trunk/coregrind/m_gdbserver/valgrind-low-s390x.c
Modified: trunk/coregrind/m_gdbserver/valgrind-low-ppc32.c (+1 -1)
===================================================================
--- trunk/coregrind/m_gdbserver/valgrind-low-ppc32.c 2012-07-21 11:08:29 +01:00 (rev 12768)
+++ trunk/coregrind/m_gdbserver/valgrind-low-ppc32.c 2012-07-21 11:10:44 +01:00 (rev 12769)
@@ -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 },
Modified: trunk/coregrind/m_gdbserver/valgrind-low-arm.c (+1 -1)
===================================================================
--- trunk/coregrind/m_gdbserver/valgrind-low-arm.c 2012-07-21 11:08:29 +01:00 (rev 12768)
+++ trunk/coregrind/m_gdbserver/valgrind-low-arm.c 2012-07-21 11:10:44 +01:00 (rev 12769)
@@ -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 },
Modified: trunk/coregrind/m_gdbserver/valgrind-low-mips32.c (+1 -1)
===================================================================
--- trunk/coregrind/m_gdbserver/valgrind-low-mips32.c 2012-07-21 11:08:29 +01:00 (rev 12768)
+++ trunk/coregrind/m_gdbserver/valgrind-low-mips32.c 2012-07-21 11:10:44 +01:00 (rev 12769)
@@ -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 },
Modified: trunk/coregrind/m_gdbserver/valgrind-low-amd64.c (+1 -1)
===================================================================
--- trunk/coregrind/m_gdbserver/valgrind-low-amd64.c 2012-07-21 11:08:29 +01:00 (rev 12768)
+++ trunk/coregrind/m_gdbserver/valgrind-low-amd64.c 2012-07-21 11:10:44 +01:00 (rev 12769)
@@ -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 },
Modified: trunk/coregrind/m_gdbserver/valgrind-low-s390x.c (+1 -1)
===================================================================
--- trunk/coregrind/m_gdbserver/valgrind-low-s390x.c 2012-07-21 11:08:29 +01:00 (rev 12768)
+++ trunk/coregrind/m_gdbserver/valgrind-low-s390x.c 2012-07-21 11:10:44 +01:00 (rev 12769)
@@ -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 },
Modified: trunk/coregrind/m_gdbserver/valgrind-low-ppc64.c (+1 -1)
===================================================================
--- trunk/coregrind/m_gdbserver/valgrind-low-ppc64.c 2012-07-21 11:08:29 +01:00 (rev 12768)
+++ trunk/coregrind/m_gdbserver/valgrind-low-ppc64.c 2012-07-21 11:10:44 +01:00 (rev 12769)
@@ -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 },
|