This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New complaints interface?


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]