This is the mail archive of the gdb-patches@sourceware.org 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: [PATCH 1/4] New gdb arch hook: return_with_first_hidden_param_p


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: pgp00000.pgp
Description: PGP signature


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