[Lldb-commits] [Patch][Please Review] Add support for GNU indirect functions
scallanan at apple.com
Fri Jan 25 11:21:25 PST 2013
Sorry, I should probably have addressed you as "Matt." I looked at the headers wrong :)
On Jan 25, 2013, at 11:19 AM, Sean Callanan <scallanan at apple.com> wrote:
> one thing I noticed is that it looks like if the indirect symbol hasn't been resolved yet in the underlying process, it looks like we just give up. What if the user wants to call a function that the program hasn't yet called? Are there cases where this would blow up? Is there something more that LLDB should be able to do to force resolution?
> On Jan 18, 2013, at 2:33 PM, "Kopec, Matt" <matt.kopec at intel.com> wrote:
>> Hi all,
>> This patch allows indirect functions to work on Linux when evaluating expressions. I'm not sure if this is a feature supported on Mac OS X.
>> This is needed to support some library functions such as strcat and strlen when used in an expression. If one of these functions are used, the function will run once in the context of the inferior, which after completion, will return the address of the actual implementation of the function.
>> Some more details on indirect functions if interested: http://www.agner.org/optimize/blog/read.php?i=167
>> lldb-commits mailing list
>> lldb-commits at cs.uiuc.edu
> lldb-commits mailing list
> lldb-commits at cs.uiuc.edu
More information about the lldb-commits