This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: New target method returning the name of the malloc function?
> This would suggest that something other than a target dependent method
> is needed. (It seems to me that it's both target and language dependent.)
Do we have a mechanism already in place that would handle both target
and language? I could not find any. An alternative is for me to add a
target method (for interix), and Pierre adds a language method (for
Pascal).
We then change the code in valops to be something like:
if (language_special_name_of_malloc ())
name_of_malloc = language_special_name_of_malloc ();
else
name_of_malloc = NAME_OF_MALLOC ();
I am slightly confused by Michael Snyder's message, though. Did it mean
that GDB has no intention of handling the cases where malloc is named
differently?
--
Joel