Re: [PATCH 1/4] New gdb arch hook: return_with_first_hidden_param_p

Joel Brobecker
2012-05-10T21:21:14Z

> Agreed. I stared at these debug info for a while, but unable to have
> a clue on heuristics. My feeling is that these debug info doesn't give
> us more than what source code can give, but the heuristics we are looking
> for are about the difference on different targets, given the same source.
> That is to say, on different targets, although the number of parameters
> is different, the debug info is almost the same and hard to get heuristics,

Can we use the fact that functions that have their first parameter
be a nameless, artificial, paramter whose type is a pointer to
the return type? Or would this heuristics trigger in other situations?

If that doesn't work, then I am running out of ideas, and then we'll
have to start looking giving GDB insider knowledge. But I really don't
like that idea.

--
Joel