From b646b438267cf0075094c191c4a60db69b758ac0 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 21 May 1993 20:43:16 +0000 Subject: [PATCH] * complaint.c: Make sure all complain() pass the address of the struct. * xcoffread.c: Make sure all struct complaints are static not auto. --- gdb/ChangeLog | 6 ++++++ gdb/stabsread.c | 6 +++--- gdb/xcoffread.c | 6 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 467637c938..73af4a4e20 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ Fri May 21 09:04:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + * complaint.c: Make sure all complain() pass the address of the struct. + + * xcoffread.c: Make sure all struct complaints are static not auto. + + * Makefile.in: Add rule for xcoffexec.o like that for paread.o. + * xcoffread.c (process_xcoff_symbol, case C_LSYM): Use define_symbol. Wed May 19 12:33:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com) diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 505528ca81..f9dbe773c1 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -534,7 +534,7 @@ define_symbol (valu, string, desc, type, objfile) goto normal; default: - complain (unrecognized_cplus_name_complaint, string); + complain (&unrecognized_cplus_name_complaint, string); goto normal; /* Do *something* with it */ } } @@ -1469,7 +1469,7 @@ rs6000_builtin_type (typenum) /* requires builtin `real' */ return lookup_fundamental_type (current_objfile, FT_FLOAT); default: - complain (rs6000_builtin_complaint, typenum); + complain (&rs6000_builtin_complaint, typenum); return NULL; } } @@ -2262,7 +2262,7 @@ read_tilde_fields (fip, pp, type, objfile) } } /* Virtual function table field not found. */ - complain (vtbl_notfound_complaint, TYPE_NAME (type)); + complain (&vtbl_notfound_complaint, TYPE_NAME (type)); return 0; } else diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 7290f179fd..d02e843871 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; -- 2.34.1