aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-05-21 20:43:16 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-05-21 20:43:16 +0000
commitb646b438267cf0075094c191c4a60db69b758ac0 (patch)
tree7f3eeca9d970f0e95f0f04ef2f6388d0c3d2298b /gdb/xcoffread.c
parent386803c0bebce34658a626ac400a47a2db91eb50 (diff)
downloadgdb-b646b438267cf0075094c191c4a60db69b758ac0.zip
gdb-b646b438267cf0075094c191c4a60db69b758ac0.tar.gz
gdb-b646b438267cf0075094c191c4a60db69b758ac0.tar.bz2
* complaint.c: Make sure all complain() pass the address of the struct.
* xcoffread.c: Make sure all struct complaints are static not auto.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 7290f17..d02e843 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -418,7 +418,7 @@ struct coff_symbol *cs;
/* This can happen with old versions of GCC.
GCC 2.3.3-930426 does not exhibit this on a test case which
a user said produced the message for him. */
- struct complaint msg = {"Nested C_BINCL symbols", 0, 0};
+ static struct complaint msg = {"Nested C_BINCL symbols", 0, 0};
complain (&msg);
}
++inclDepth;
@@ -452,7 +452,7 @@ struct coff_symbol *cs;
if (inclDepth == 0)
{
- struct complaint msg = {"Mismatched C_BINCL/C_EINCL pair", 0, 0};
+ static struct complaint msg = {"Mismatched C_BINCL/C_EINCL pair", 0, 0};
complain (&msg);
}
@@ -1814,7 +1814,7 @@ read_symbol (symbol, symno)
{
if (symno < 0 || symno >= symtbl_num_syms)
{
- struct complaint msg =
+ static struct complaint msg =
{"Invalid symbol offset", 0, 0};
complain (&msg);
symbol->n_value = 0;