diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-10-25 22:25:55 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-10-25 22:25:55 +0000 |
commit | 72367fb45badc6ee3fe515b31348266310bff371 (patch) | |
tree | 1c5768fc9c002675eefcfb826312ee34280f38be /gdb/complaints.h | |
parent | 0c1a73d6161aa208838c415d735d41be3ee16fb7 (diff) | |
download | gdb-72367fb45badc6ee3fe515b31348266310bff371.zip gdb-72367fb45badc6ee3fe515b31348266310bff371.tar.gz gdb-72367fb45badc6ee3fe515b31348266310bff371.tar.bz2 |
2002-10-25 Andrew Cagney <cagney@redhat.com>
* complaints.h (struct deprecated_complaint): Rename `struct
complaint'.
* complaints.c (complain): Update.
* remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
incorrect comment indicating that "symfile.h" was being included
for the `struct complaint' definition.
* remote-vx.c: Update.
* objc-lang.c: Update.
* xcoffread.c: Update.
* hpread.c: Update.
* mdebugread.c: Update.
* stabsread.c: Update.
* dwarf2read.c: Update.
* dwarfread.c: Update.
* elfread.c: Update.
* coffread.c: Update.
* stabsread.h: Update.
* dbxread.c: Update.
* buildsym.c: Update.
* gdbtypes.c: Update.
* macrotab.c: Update.
Diffstat (limited to 'gdb/complaints.h')
-rw-r--r-- | gdb/complaints.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/gdb/complaints.h b/gdb/complaints.h index c176b19..159dcd1 100644 --- a/gdb/complaints.h +++ b/gdb/complaints.h @@ -50,9 +50,15 @@ extern void clear_complaints (struct complaints **complaints, int less_verbose, int noisy); -/* Legacy interfaces to keep the old code working (until it is all - converted to the above). While the structure below contains a - number of fields, all but .message are ignored. +/* Deprecated interfaces to keep the old code working (until it is all + converted to the above). Existing code such as: + + struct deprecated_complaint msg = { "msg", 0, 0 }; + complaint (&msg); + + should be replaced by: + + complaint (&symtab_complaints, __FILE__, __LINE__, "msg"); Support for complaining about things in the symbol file that aren't catastrophic. @@ -61,13 +67,13 @@ extern void clear_complaints (struct complaints **complaints, during a symbol read, we report it. At the end of symbol reading, if verbose, we report how many of each problem we had. */ -struct complaint +struct deprecated_complaint { const char *message; unsigned counter_ignored; - struct complaint *next_ignored; + struct deprecated_complaint *next_ignored; }; -extern void complain (struct complaint *, ...); +extern void complain (struct deprecated_complaint *, ...); #endif /* !defined (COMPLAINTS_H) */ |