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: 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


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