diff options
author | Kevin Buettner <kevinb@redhat.com> | 2002-12-17 00:39:08 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2002-12-17 00:39:08 +0000 |
commit | 231367095d5e01a7e3489d8333b43b94d2e1c58a (patch) | |
tree | a857f6ca2f28b469e935b67d801c958449168fbe /gdb/elfread.c | |
parent | bcc61ecbbb7bddfcb182b707c6c760d5b6e7c4e2 (diff) | |
download | gdb-231367095d5e01a7e3489d8333b43b94d2e1c58a.zip gdb-231367095d5e01a7e3489d8333b43b94d2e1c58a.tar.gz gdb-231367095d5e01a7e3489d8333b43b94d2e1c58a.tar.bz2 |
Replace complain() with complaint().
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index a29a71b..ba8fc49 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -52,20 +52,6 @@ struct elfinfo asection *mdebugsect; /* Section pointer for .mdebug section */ }; -/* Various things we might complain about... */ - -struct deprecated_complaint section_info_complaint = -{"elf/stab section information %s without a preceding file symbol", 0, 0}; - -struct deprecated_complaint section_info_dup_complaint = -{"duplicated elf/stab section information for %s", 0, 0}; - -struct deprecated_complaint stab_info_mismatch_complaint = -{"elf/stab section information missing for %s", 0, 0}; - -struct deprecated_complaint stab_info_questionable_complaint = -{"elf/stab section information questionable for %s", 0, 0}; - static void free_elfinfo (void *); /* We are called once per section from elf_symfile_read. We @@ -415,8 +401,9 @@ elf_symtab_read (struct objfile *objfile, int dynamic) sizeof (*sectinfo)); if (filesym == NULL) { - complain (§ion_info_complaint, - sym->name); + complaint (&symfile_complaints, + "elf/stab section information %s without a preceding file symbol", + sym->name); } else { @@ -428,8 +415,9 @@ elf_symtab_read (struct objfile *objfile, int dynamic) { if (sectinfo->sections[index] != 0) { - complain (§ion_info_dup_complaint, - sectinfo->filename); + complaint (&symfile_complaints, + "duplicated elf/stab section information for %s", + sectinfo->filename); } } else @@ -740,7 +728,8 @@ elfstab_offset_sections (struct objfile *objfile, struct partial_symtab *pst) if (maybe == 0 && questionable != 0) { - complain (&stab_info_questionable_complaint, filename); + complaint (&symfile_complaints, + "elf/stab section information questionable for %s", filename); maybe = questionable; } @@ -757,7 +746,8 @@ elfstab_offset_sections (struct objfile *objfile, struct partial_symtab *pst) /* We were unable to find any offsets for this file. Complain. */ if (dbx->stab_section_info) /* If there *is* any info, */ - complain (&stab_info_mismatch_complaint, filename); + complaint (&symfile_complaints, + "elf/stab section information missing for %s", filename); } /* Register that we are able to handle ELF object file formats. */ |