This is the mail archive of the gdb-patches@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: [PING/RFA]: Search for Objc Symbols


On Sat, 10 May 2003 21:31:03 -0600, Adam Fedor <fedor@doc.com> said:

> +  method = SYMBOL_DEMANGLED_NAME (msymbol);
> +  if (method == NULL)
> +    method = SYMBOL_LINKAGE_NAME (msymbol);
> +  if (method == NULL)
> +    return;

These should, I think, be replaced by

  method = SYMBOL_NATURAL_NAME (msymbol);

Without a test for NULL at the end: the resulting name should never be
NULL.
 
David Carlton
carlton@math.stanford.edu


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