diff options
author | Thomas Jarosch <tomj@simonv.com> | 2015-01-11 21:40:51 +0100 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2015-01-11 21:40:51 +0100 |
commit | 2a3e1628a50b9de7c1462ee95eb79937795f5409 (patch) | |
tree | 3c2c965007a71c4895a65d8a91252b9ce2255719 /gdb | |
parent | 85c98bc63c6635fe9e337178f23faa9c0ec3f9fb (diff) | |
download | rockbox-2a3e1628a50b9de7c1462ee95eb79937795f5409.tar.gz rockbox-2a3e1628a50b9de7c1462ee95eb79937795f5409.zip |
Limit more variables to file scope
Change-Id: I30219d626316776eb73b4205d63376fa3dbc6361
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/sh-stub.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/sh-stub.c b/gdb/sh-stub.c index 1b93efa352..9daca39f72 100644 --- a/gdb/sh-stub.c +++ b/gdb/sh-stub.c @@ -381,16 +381,16 @@ void start (void); #define IO_VEC 33 #define USER_VEC 127 -char in_nmi; /* Set when handling an NMI, so we don't reenter */ -int dofault; /* Non zero, bus errors will raise exception */ +static char in_nmi; /* Set when handling an NMI, so we don't reenter */ +static int dofault; /* Non zero, bus errors will raise exception */ -int *stub_sp; +static int *stub_sp; /* debug > 0 prints ill-formed commands in valid packets & checksum errors */ -int remote_debug; +static int remote_debug; /* jump buffer used for setjmp/longjmp */ -jmp_buf remcomEnv; +static jmp_buf remcomEnv; enum regnames { @@ -407,9 +407,9 @@ typedef struct } stepData; -int registers[NUMREGBYTES / 4]; -stepData instrBuffer; -char stepped; +static int registers[NUMREGBYTES / 4]; +static stepData instrBuffer; +static char stepped; static const char hexchars[] = "0123456789abcdef"; static char remcomInBuffer[BUFMAX]; static char remcomOutBuffer[BUFMAX]; |