0

i was wondering how to get to the function definition of a function pointer. Currently i have a function which is called in the following way:

iVar = (*DAT)(param_2, PTR_s)

When i press on *DAT i see that it is referenced by several functions. What i am wondering know is what the function definition looks like because i am interested in what the function is doing. How do i get to the function definition from the pointer?

3
  • 1
    Is DAT a global variable? Commented Jun 4, 2021 at 21:13
  • Ehhh, i am quite new to ghidra. How can i see if this is the case?
    – Hakan
    Commented Jun 4, 2021 at 21:20
  • @Hakan hi and welcome to RE.SE. Are you new to C also? You seem to be confused about the syntax here also.
    – 0xC0000022L
    Commented Jun 7, 2021 at 15:09

1 Answer 1

-1

Did you find this code in the decompile windows of Ghidra, right?
In my case, it can be like this format: DAT_00000a30.
So if you go to the address 00000a30 in the Assemble windows (press G, and input 0a30), you can find the DAT_00000a30 part.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.