This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: New complaints interface?
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Adam Fedor <fedor at doc dot com>
- Cc: gdb <gdb at sources dot redhat dot com>
- Date: Tue, 22 Oct 2002 12:25:42 -0400
- Subject: Re: New complaints interface?
- References: <3D9BAEFD.1060904@doc.com>
How does the new complaints interface work? I'd like to fix up objc-lang.c, but I'm not sure how to change it.
The short answer is change this:
static struct complaint noclass_lookup_complaint = {
"no way to lookup Objective-C classes", 0, 0
};
...
complain (&noclass_lookup_complaint, 0);
to this:
complaint (&symfile_complaints, __FILE__, __LINE__,
"no way to lookup Objective-C classes");
I'm still to do the long (gdbint.texinfo) answer :-(
Andrew