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

Thomas Schwinge
2012-05-15T15:35:48Z

[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]

Hi!

On Thu, 10 May 2012 14:20:54 -0700, Joel Brobecker <brobecker@adacore.com> wrote:
> > 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?

Just a quick thought without having a lot of context on this issue --
what about the case where there isn't even any debug information
available for the function to be called? Does this rule out the DWARF
route, or isn't that something to be prepared for?

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

Grüße,
Thomas

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]