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

Joel Brobecker
2012-05-15T15:01:57Z

> > So, you are saying that we have functions who have an extra hidden
> > parameter used for something other than the function's return value?
> >
>
> No, the extra hidden parameter's type is the reference of the function's
> return type. My point is if we only examine debug info, we don't know
> whether hidden parameter is passed, because the debug info is the same
> regardless of hidden parameter is passed or not.

I may be too naive, or maybe I am not understanding what you are saying,
but I find it horrifying that the compiler would generate a parameter
DIE for a function if that parameter is not actually passed when calling
that function. Did I misunderstand?

--
Joel