Displaying 5 results from an estimated 5 matches for "getstubataddress".
2008 Feb 13
5
[LLVMdev] Instrumenting virtual function calls
...function. The function pointer is coming from a
vtable, which gets filled in with pointers to stub functions.
Is there any way to do the round trip for a stub function? Two
possible solutions come to mind:
1) Modify getGlobalValueAtAddress to work for pointers to stub
functions
2) Add a getStubAtAddress
Any other suggestions?
Robert
On Feb 10, 2008, at 3:41 PM, Chris Lattner wrote:
>
> On Feb 10, 2008, at 5:33 AM, Robert Zeh wrote:
>
>> I'm attempting to instrument virtual function calls in my code.
>> After each virtual call I'm calling my own registerMethod funct...
2008 Feb 13
0
[LLVMdev] Instrumenting virtual function calls
...tions come to mind:
> 1) Modify getGlobalValueAtAddress to work for pointers to stub
> functions
I think I like this better. I think others might want to, need to do
this same thing and I suspect they don't want to learn and they'll
appreciate it just working.
> 2) Add a getStubAtAddress
2008 Feb 13
0
[LLVMdev] Instrumenting virtual function calls
...nter is coming from a
> vtable, which gets filled in with pointers to stub functions.
>
> Is there any way to do the round trip for a stub function? Two
> possible solutions come to mind:
> 1) Modify getGlobalValueAtAddress to work for pointers to stub
> functions
> 2) Add a getStubAtAddress
>
> Any other suggestions?
Do you care about JIT laziness? You could just call
getPointerToFunction on every function in the module before your code
starts up.
-Chris
2008 Feb 10
0
[LLVMdev] Instrumenting virtual function calls
On Feb 10, 2008, at 5:33 AM, Robert Zeh wrote:
> I'm attempting to instrument virtual function calls in my code.
> After each virtual call I'm calling my own registerMethod function,
> with an integer marking the location of the call and a pointer to
> the function that was called.
>
> However, and this is where I get confused, the function pointer
>
2008 Feb 10
2
[LLVMdev] Instrumenting virtual function calls
I'm attempting to instrument virtual function calls in my code. After
each virtual call I'm calling my own registerMethod function, with an
integer marking the location of the call and a pointer to the function
that was called.
However, and this is where I get confused, the function pointer
doesn't match any of the functions in my module. I'd hoped to call